2
Answers

The IXmlSerializable type 'System.Xml.Linq.XElement' cannot

Photo of M B

M B

8y
789
1
I have used external web service in which one of the operation methods contains XElement as a parameter.I am getting an exception which is shown below.
 
The IXmlSerializable type 'System.Xml.Linq.XElement' cannot be deserialized in partial trust because it does not have a public parameterless constructor
 
I have tried XmlElement instead of XElement but this service method return XElement
 
Thanks in advance 

Answers (2)