Having the same problems with passing a Wrapper Class through on a return from a web service:
An exception of type 'System.InvalidOperationException' occurred in System.Xml.dll but was not handled in user code
Additional information: There is an error in XML document (1, 1348).
Code compiles correctly and the XML looks fine when I request it directly in the .asmx page!
<?xml
version="1.0" encoding="utf-8" ?>
- <NameValuePairWrapper xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.alphawest.com.au/WebServices/ThirdParty/Hummingbird">
<Name>uniqueFileName</Name>
<Value>632823586524593496.doc</Value>
</NameValuePairObject>
<Name>uniqueFileLocation</Name>
<Value>D:\Projects\HummingbirdDMWindowsApplication\temp\632823586524593496.doc</Value>
</NameValuePairObject>
<Value>application/msword</Value>
</NameValuePairObject>
</nameValuePairs>
</NameValuePairWrapper>
It thought M$ had fixed this! I also tried to put an XmlInclude in there but no joy! Not sure what is going on here!