Solved

Difference between msxml versions?

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hide Table in merge 3 41
Html CheckBox obtain Its Value 5 37
ASP Classic - Read XML File inner content 10 49
SQL to JSON 14 40
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 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