Hi,
i am getting an error when trying to deserialize and xml. the error is
shown below. i get this error regardless if i try to desearialize in
C# or VB. the XML itself does infact contain a top level "PDocument"
note which contains an xmlns namespace and some other attriute. is the
error belowing telling it doesn't like that namespace declaration? how
can i programmactical ly fix this, as i do not have control of the xml i
recieve...i just know that they are valid.
---------------------------------------------
There is an error in XML document (1, 40).
************** Exception Text **************
System.InvalidO perationExcepti on: There is an error in XML document (1,
40). ---> System.InvalidO perationExcepti on: <PDocument xmlns=''> was
not expected.
at
Microsoft.Xml.S erialization.Ge neratedAssembly .XmlSerializati onReaderPDocume nt.Read14_PDocu ment()
--- End of inner exception stack trace ---
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle, XmlDeserializat ionEvents events)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader)
...
...{it goes on to show the stack trace here....
...
at Microsoft.Offic e.Tools.Word.Do cument.OnStartu p()
at ThisDocument.Fi nishInitializat ion() in
C:\Proj\Test\My Note.Designer.v b:line 83
at
Microsoft.Visua lStudio.Tools.A pplications.Run time.AppDomainM anagerInternal. ExecutePhase(St ring
methodName)
at
Microsoft.Visua lStudio.Tools.A pplications.Run time.AppDomainM anagerInternal. ExecuteCustomiz ationStartupCod e()
at
Microsoft.Visua lStudio.Tools.A pplications.Run time.AppDomainM anagerInternal. ExecuteCustomiz ation(IHostServ iceProvider
serviceProvider )
i am getting an error when trying to deserialize and xml. the error is
shown below. i get this error regardless if i try to desearialize in
C# or VB. the XML itself does infact contain a top level "PDocument"
note which contains an xmlns namespace and some other attriute. is the
error belowing telling it doesn't like that namespace declaration? how
can i programmactical ly fix this, as i do not have control of the xml i
recieve...i just know that they are valid.
---------------------------------------------
There is an error in XML document (1, 40).
************** Exception Text **************
System.InvalidO perationExcepti on: There is an error in XML document (1,
40). ---> System.InvalidO perationExcepti on: <PDocument xmlns=''> was
not expected.
at
Microsoft.Xml.S erialization.Ge neratedAssembly .XmlSerializati onReaderPDocume nt.Read14_PDocu ment()
--- End of inner exception stack trace ---
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle, XmlDeserializat ionEvents events)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader)
...
...{it goes on to show the stack trace here....
...
at Microsoft.Offic e.Tools.Word.Do cument.OnStartu p()
at ThisDocument.Fi nishInitializat ion() in
C:\Proj\Test\My Note.Designer.v b:line 83
at
Microsoft.Visua lStudio.Tools.A pplications.Run time.AppDomainM anagerInternal. ExecutePhase(St ring
methodName)
at
Microsoft.Visua lStudio.Tools.A pplications.Run time.AppDomainM anagerInternal. ExecuteCustomiz ationStartupCod e()
at
Microsoft.Visua lStudio.Tools.A pplications.Run time.AppDomainM anagerInternal. ExecuteCustomiz ation(IHostServ iceProvider
serviceProvider )
Comment