Solved

Problem with deserializing an xml document.

Posted on 2006-06-30
7
872 Views
Last Modified: 2008-01-09
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
Comment
Question by:BofADev
  • 3
7 Comments
 
LVL 4

Accepted Solution

by:
Jigit earned 250 total points
ID: 17026498
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
 
LVL 9

Assisted Solution

by:lojk
lojk earned 250 total points
ID: 17037352
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
 
LVL 9

Expert Comment

by:lojk
ID: 17233829
50/50 split between jigit (Accept) and lojk(Assist) would suffice, we had supplied all required info...
0
 

Author Comment

by:BofADev
ID: 17234486
That is fine with me.
0
 
LVL 9

Expert Comment

by:lojk
ID: 17240803
OK BofADev, save the page cleanup-erers and moderators a job, close the post yourself and split the points...
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
DataGridView 2 29
Exception in Log4Net 1 20
C# code editing and collaboration 3 49
Format column on datatable 7 18
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now