Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Problem with deserializing an xml document.

Posted on 2006-06-30
7
875 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

829 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