Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would ask you for your help!

DateTime date = Convert.ToDateTime("1900-01-01");
VisionSoapClient vsc = new VisionSoapClient();
System.Xml.Linq.XElement xdata = vsc.GetCikkek(date);
string path = "/ramiris/cikkek.xml";
xdata.Save(Server.MapPath(path));

I get the following error message is returned:

The IXmlSerializable type 'System.Xml.Linq.XElement' cannot be deserialized in
partial trust because it does not have a public parameterless constructor.

Please help!
Posted
Comments
.net developer123456789 8-Feb-17 3:55am    
Try using XmlElement instead of XElement, that should work on both full and partial trust.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900