Error "... was not expected. There was an error generating the XML document"
- From: Curious <fir5tsight@xxxxxxxxx>
- Date: Tue, 19 Feb 2008 19:01:01 -0800 (PST)
The same code runs fine on my machine. However, it gets runtime error
on a co-worker's machine. The complete error message is:
System.InvalidOperationException: There was an errpr generating the
XML document.
-->System.InvalidOperationException: The type
JointConsole.PrintGenericFilter was not expected.
Use the XMLInclude or SoapInclude attribute to specify types that are
not known statically.
at
System.Xml.Serialization.XmlSerializationWrite.WriteTypedPrimitive(String
name,
String ns, Object o, Boolean xsiType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterArrayList.Write1_Object
(String n, String ns, Object o, Boolean isNullable, Boolean needType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterArrayList.Write3_ArrayOfAnyType(Object
o)
--- End of inner exception stacj trace ---
at System.Xml.Serialization.XmlSerialize.serialize(XmlWriter
xmlWriter, Object o,
XmlSerializeNamespaces namespaces, String encodingStyle, String id)
Anyone can tell me what is wrong?
.
- Follow-Ups:
- Prev by Date: RE: Pop ups
- Next by Date: Re: SOA
- Previous by thread: RE: Pop ups
- Next by thread: Re: Error "... was not expected. There was an error generating the XML document"
- Index(es):
Relevant Pages
|