Error "... was not expected. There was an error generating the XML document"



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?
.



Relevant Pages

  • Re: Cbool problem
    ... >I built up a string in code and now I wish to evaluate it ... > using Cbool but I get a runtime error. ... For compiled programming languages it's not that easy. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Automate import .csv into table
    ... >What does that string look like? ... >> i followed the basic instructions in the database help ... >> when i run the code i come up with a runtime error ... >> is not an EXCEL ...
    (microsoft.public.access.externaldata)
  • Re: Help SQL filter
    ... > Runtime Error '3001' Arguments are of the wrong type, ... Is this DAO or ADO? ... Because ADO does not support multiple criteria (i.e., ... build a string with your criteria ...
    (microsoft.public.vb.general.discussion)
  • RE: Check function parameters for null Values
    ... expected (normally generates Runtime Error 94). ... > The following example in mytest1 worksbut requires hard coding the controls ... I really need to specify parameters like in the second example ... > Function mytest2(a As String, ...
    (microsoft.public.access.modulesdaovba)
  • RE: Programming Loop with SQL Update Query
    ... John C Brainard wrote: ... >the code field is declared as string. ... >Runtime Error '3075' ...
    (microsoft.public.access.modulesdaovba)