M B

M B

  • NA
  • 61
  • 12.2k

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

Feb 10 2017 8:29 AM
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)