adspace


Xmlserializer is throwing a generic "there was an error reflecting myclass" error. How do I find out what the problem is?

Answer Posted / Tanya

"To diagnose this issue, you can follow these steps:n
1. Check if the class 'myClass' has all public properties or fields.
2. Ensure that all properties or fields are decorated with [XmlElement] or [XmlAttribute].
3. Verify that any referenced classes also have proper XML serialization attributes.
4. Run your application in debug mode and inspect the exceptions for more details."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why am I getting an invalidoperationexception when I serialize an arraylist?

971


hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays

2401


difference between Response.write,server.transfer and also which one is used when ?

1981


How do I know when my thread pool work item has completed?

1001


How does an appdomain get created?

1028


Explain element .net mobile with example? : Microsoft dot net mobile

1053


Different types of authentication modes in .net framework ?

1066


I can't be bothered with cas. Can I turn it off?

1019