Board index » Visual Studio » VB6: MSXML2.DOMDocument40 problem

VB6: MSXML2.DOMDocument40 problem

Visual Studio48
I'm having a problem with the following:



Dim XMLObj As MSXML2.DOMDocument40

Set XMLObj = New MSXML2.DOMDocument40



I get an error 429 on this second line.



I've tried creating references in the project to msxml2.dll but found that

DOMDocument40 wasn't there, so I then created a reference to msxml3.dl, which

returns an error as well. I tried msxml6.dll. What's going on here? It

seems to work at the place where I work, but it doesn't work on my machine at

home and so I'm trying to figure out what the problem is.


-
 

Re:VB6: MSXML2.DOMDocument40 problem



"Les Stockton" <LesStockton@discussions.microsoft.com>wrote

Quote
I'm having a problem with the following:



Dim XMLObj As MSXML2.DOMDocument40

Set XMLObj = New MSXML2.DOMDocument40



I get an error 429 on this second line.



I've tried creating references in the project to msxml2.dll but found that

DOMDocument40 wasn't there, so I then created a reference to msxml3.dl, which

returns an error as well. I tried msxml6.dll. What's going on here? It

seems to work at the place where I work, but it doesn't work on my machine at

home and so I'm trying to figure out what the problem is.





After you've added your reference, open up the Object Browser and look

around, see what it supports....



LFS

-

Re:VB6: MSXML2.DOMDocument40 problem

It supports DOMDocument40. I can retype the line and even VB6 allows me to

browse and choose, and I'm able to chooce DOMDocument40



"Larry Serflaten" wrote:



Quote


"Les Stockton" <LesStockton@discussions.microsoft.com>wrote

>I'm having a problem with the following:

>

>Dim XMLObj As MSXML2.DOMDocument40

>Set XMLObj = New MSXML2.DOMDocument40

>

>I get an error 429 on this second line.

>

>I've tried creating references in the project to msxml2.dll but found that

>DOMDocument40 wasn't there, so I then created a reference to msxml3.dl, which

>returns an error as well. I tried msxml6.dll. What's going on here? It

>seems to work at the place where I work, but it doesn't work on my machine at

>home and so I'm trying to figure out what the problem is.





After you've added your reference, open up the Object Browser and look

around, see what it supports....



LFS



-

Re:VB6: MSXML2.DOMDocument40 problem



"Les Stockton" <LesStockton@discussions.microsoft.com>wrote

Quote
It supports DOMDocument40. I can retype the line and even VB6 allows me to

browse and choose, and I'm able to chooce DOMDocument40





Try:



Dim XMLObj As MSXML2.DOMDocument40

Set XMLObj = New MSXML2.DOMDocument





LFS



-

Re:VB6: MSXML2.DOMDocument40 problem

Nope. Same error.



Dim XMLObj As MSXML2.DOMDocument40

Set XMLObj = New MSXML2.DOMDocument40

this should work, because it works on my computer at work. Both machines

are XP. Mine at home is XP Home. I wouldn't think that would make a big

difference as far as the xml dll. And I seem to have the same dlls as at

work, or at least they're the same names.



"Larry Serflaten" wrote:



Quote


"Les Stockton" <LesStockton@discussions.microsoft.com>wrote

>It supports DOMDocument40. I can retype the line and even VB6 allows me to

>browse and choose, and I'm able to chooce DOMDocument40





Try:



Dim XMLObj As MSXML2.DOMDocument40

Set XMLObj = New MSXML2.DOMDocument





LFS





-

Re:VB6: MSXML2.DOMDocument40 problem

Les Stockton wrote:



Quote
I'm having a problem with the following:



Dim XMLObj As MSXML2.DOMDocument40

Set XMLObj = New MSXML2.DOMDocument40



I get an error 429 on this second line.



I've tried creating references in the project to msxml2.dll but found that

DOMDocument40 wasn't there, so I then created a reference to msxml3.dl,

which returns an error as well. I tried msxml6.dll. What's going on

here? It seems to work at the place where I work, but it doesn't work on

my machine at home and so I'm trying to figure out what the problem is.



I tried referencing "Microsoft XML, v5.0" and even though DOMDocument40

shows up in the object browser, I received the same 429 error you're

getting.



According to the post below from a Microsoft employee, it is necessary to

download MSXML 4.0 and install it to get your code to work:



http://groups.google.com/group/microsoft.public.vb.6.webdevelopment/msg/53f63a11bdf8d189?hl" rel="nofollow" target="_blank">groups.google.com/group/microsoft.public.vb.6.webdevelopment/msg/53f63a11bdf8d189=en



You can download MSXML 4.0 from the link below:



http://www.microsoft.com/downloads/details.aspx?familyid" rel="nofollow" target="_blank">www.microsoft.com/downloads/details.aspx=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&displaylang=en



Hopefully downloading and installing 4.0 will solve your problem.



Ben





-

Re:VB6: MSXML2.DOMDocument40 problem

Make sure the reference is to "Microsoft XML, v3.0" or "Microsoft XML,

v4.0". Do not use "Microsoft XML, version 2.0" or "Microsoft XML, v2.6", as

these don't support V4 documents. Also don't use "Microsoft XML, v5.0" or

above, as these aren't supported. Finally make sure you have exactly one

Microsoft XML reference, and no more. You claim to have created a reference

to a DLL. Do not do this, but use the already registered reference. If you

can't find it, download, install and/or re-register with regsvr32.





"Les Stockton" <LesStockton@discussions.microsoft.com>wrote in message

Quote
I'm having a problem with the following:



Dim XMLObj As MSXML2.DOMDocument40

Set XMLObj = New MSXML2.DOMDocument40



I get an error 429 on this second line.



I've tried creating references in the project to msxml2.dll but found that

DOMDocument40 wasn't there, so I then created a reference to msxml3.dl,

which

returns an error as well. I tried msxml6.dll. What's going on here? It

seems to work at the place where I work, but it doesn't work on my machine

at

home and so I'm trying to figure out what the problem is.







-