Solved

Difference between msxml versions?

Posted on 2006-07-16
3
765 Views
Last Modified: 2010-05-18
I have an ASP page that refers to MSXML2:

Set oHTTP = Server.CreateObject("MSXML2.XMLHTTP")

All of a sudden, I get this error message:

msxml3.dll
error '800c0005'
The system cannot locate the resource specified.

Version 3 is not even referenced in the ASP code. Thinking that the latest version is best, I downloaded msxml4 from Microsoft's site, and changed the references in the ASP code to v4:

Set oHTTP = Server.CreateObject("MSXML4.XMLHTTP")

But, now I get a different error message:

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/flight/index.asp, line 213
Invalid class string

What am I doing wrong?

0
Comment
Question by:lee88
  • 2
3 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 17119427
>>Set oHTTP = Server.CreateObject("MSXML4.XMLHTTP")<<
That is because it should be declared as:
Set oHTTP = Server.CreateObject("Msxml2.ServerXmlHttp.4.0")

But you were told that in your duplicated question here:
http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21921012.html
0
 

Author Comment

by:lee88
ID: 17120945
When I asked this question, I did not know that I was making a mistake in the syntax, and was starting to think that v4 was not backward compatible. And, now I'm getting an "Access denied" using the object's Send method (which I was not getting when v2 was working a week ago).

Also, I don't understand why, when the code refers to v2, how can the error message refer to v3?

Also, I don't understand why the error just popped up, seemingly, out of the blue. The only thing I can think of is that my laptop took an automatic Windows update last week, and that MS clamped down something security-related which caused v2 to quit working. I guess that sounds a little paranoid (about MS and their updates).

I was hoping to discover if there is a difference in the functionality of v2, v3, v4.

(And, I do appreciate the help on the syntax)
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 17122259
>>Also, I don't understand why, when the code refers to v2, how can the error message refer to v3?<<
Simply put MSXML2 refers to all versions from v 2.6 and above.  There is no MSXML3 or MSXML4 or MSXML5 or ... (well you get the picture)

>>I was hoping to discover if there is a difference in the functionality of v2, v3, v4.<<
Sure there is.  It is all covered in the documenttaion for each new version.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 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