Solved

Problem with deserializing an xml document.

Posted on 2006-06-30
7
877 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
[X]
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
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

740 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