Discussion:
VB6: MSXML2.DOMDocument40 problem
(too old to reply)
Les Stockton
2005-08-20 21:53:13 UTC
Permalink
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.
Larry Serflaten
2005-08-20 23:43:03 UTC
Permalink
Post by Les Stockton
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
Les Stockton
2005-08-21 00:31:20 UTC
Permalink
It supports DOMDocument40. I can retype the line and even VB6 allows me to
browse and choose, and I'm able to chooce DOMDocument40
Post by Larry Serflaten
Post by Les Stockton
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
Larry Serflaten
2005-08-21 01:41:38 UTC
Permalink
Post by Les Stockton
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
Les Stockton
2005-08-21 01:49:01 UTC
Permalink
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.
Post by Les Stockton
Post by Les Stockton
It supports DOMDocument40. I can retype the line and even VB6 allows me to
browse and choose, and I'm able to chooce DOMDocument40
Dim XMLObj As MSXML2.DOMDocument40
Set XMLObj = New MSXML2.DOMDocument
LFS
Ben Amada
2005-08-21 06:55:29 UTC
Permalink
Post by Les Stockton
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=en

You can download MSXML 4.0 from the link below:

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

Hopefully downloading and installing 4.0 will solve your problem.

Ben
Mark Yudkin
2005-08-21 13:24:33 UTC
Permalink
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.
Post by Les Stockton
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.
Loading...