Close

XMLDeserialize: Error in XML document (1,2)

Generated service contract and data contracts from a WSDL using svcutil. Next, I tried to deserialize a XML message into the generated object. I received the following error: There is an error in XML document (1,2). After debugging code, I found out the [XmlRoot] attribute was not generated. Below, you see the generated datacontract with…