When trying to serialize a complex object using the XmlSerializer, we can encountered a Type was not expected exception. This exception is generated as a result of a property declared as a base type, but the actual reference is done with a child class instance. For example:
og-bit.com
Class Declaration:
public class Account
{
int number { get; set; }
}
public class Client
{
public...
Showing posts with label debug. Show all posts
Showing posts with label debug. Show all posts
11/5/12
4/22/12
SharePoint Use Correlation Id to Get Error Detail
When activating a SharePoint feature or creating a sub-site from a custom web template, you have probably received a few errors from SharePoint which show a correlation id and nothing additional that can indicate what the problem is. The purpose of this id is to allow you to find additional information about the errors by reading the ULS trace log (Unified Logging System). You can find the details...