Solved

Difference between msxml versions?

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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 Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

815 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

8 Experts available now in Live!

Get 1:1 Help Now