Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 888
  • Last Modified:

Problem with deserializing an xml document.

I wrote a proxy to consume a .net webservice in c#.net  The proxy works fine in .NET and used to work fine when I used it in a vb6 application.  However, ever since I installed the .net framework 2.0 if I recompile the proxy I get the following error when using in the vb6 app.  

-2146233079 There is an error in XML document (0, 0)

It still works fine in .NET just vb6.  Also, when I uninstall the .net framework 2.0 and recompile it works fine.

Any suggestions?
0
BofADev
Asked:
BofADev
  • 3
2 Solutions
 
JigitCommented:
This may relate to the version of MSSML object installed on your machine and being used by your application. If your VB6.0 application uses:
ActiveXObject("MSXML.DOMDocument") it will create XML document with the default installed version
If it uses ActiveXObject("MSXML2.DOMDocument") or ActiveXObject("MSXML3.DOMDocument") it will create with the specified version. Maybe .NET 2.0 installs a newer version of XML Document which is not supported by VB6.

If your application uses XML Document without any version, then try to specify a version 2 or 3.

HTH,
Jigit
0
 
lojk.Net and Infrastructure ConsultantCommented:
Er yeah, think .net2 uses the MSXML6 Parser...

Download the SDK/Redistributable for the lateset MSXML Parser and add that reference to your VB6 project reference list instead of the exisiting v2-v4 that you are probably using...
0
 
lojk.Net and Infrastructure ConsultantCommented:
50/50 split between jigit (Accept) and lojk(Assist) would suffice, we had supplied all required info...
0
 
BofADevAuthor Commented:
That is fine with me.
0
 
lojk.Net and Infrastructure ConsultantCommented:
OK BofADev, save the page cleanup-erers and moderators a job, close the post yourself and split the points...
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now