Problem: After migrating our solution from SharePoint 2010 to SharePoint 2013 we found an error related to custom XSL file.
The XSL itself was well formed and the generated XML also was fine but we had the below error
"Token Text in state EndRootElement would result in an invalid XML document. Make sure that the ConformanceLevel setting is set to ConformanceLevel.Fragment or ConformanceLevel.Auto if you want to write an XML fragment."
Root Cause:
Solution: After investigation I had found that there's a problem might occur in XSL with SharePoint 2013 related to referencing Javascript tags inside XSL.
Hope it helps you.
Best Regards
Ahmed Gamal
Wednesday, 5 November 2014
Sunday, 10 August 2014
The media set has 2 media families but only 1 are provided
Issue
While attempting to restore your database using MyLittle Backup you receive the following error:
"The media set has 2 media families but only 1 are provided"
"The media set has 2 media families but only 1 are provided"
Cause
This error is due to your backup being divided into more than one part at the time of creating your initial backup file. The backup will need to be repeated so that it is contained in one file only.
In the example screenshot below you will see that there are two paths listed for the backup destination, which will create a backup over two files.

Resolution
Remove one path from the backup destination so that only one .bak file is created and then restore this file using MyLittleBackup.
You can know more details about the issue from Microsoft PM who owns SQL backups
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/abf50e00-c9b0-4809-9e61-43ed8a53e968/the-media-set-has-2-media-families-but-only-1-are-provided?forum=sqltools
The solution was copied from the below link
http://www.net24.co.nz/kb/article/AA-00125/17/Microsoft-SQL-Server-Hosting/MyLittle-Backup-Restore-Error-The-media-set-has-2-media-families-but-only-1-are-provided.html
Hope it helps you
Best Regards
Ahmed Gamal
Monday, 28 April 2014
Cloning in .net
Cloning C# objects is one of those things that appears easy but is actually quite complicated with many "gotchas." This article describes the most common ways to clone a C# object.
The below article is so good for understanding what's the differences between clone and shadow in .net.
it also will go throw sample implementation with nice examples
hope you enjoy it.
http://developerscon.blogspot.com/2008/06/c-object-clone-wars.html
http://msdn.microsoft.com/en-us/library/system.object.memberwiseclone.aspx
Subscribe to:
Posts (Atom)