There was an error reflecting type, while using XmlSerializer


I use the following code for XmlSerialization

XmlSerializer serializer = new XmlSerializer(typeof(DestinationDetails));

But it shows the error "There was an error reflecting type 'DestinationDetails'

See All Responses Below...
Message Rating
Posted on: 15/07/2013
Did you put this attribute above the class name?

public class ContentDetails

Posted on: 15/07/2013
Also you need to put al variables a properties if you want to expose it outside as XML attributes..

Share this page across other social networking sites

Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site.