Solved

Difference between msxml versions?

Posted on 2006-07-16
3
754 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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/…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now