Solved

Difference between msxml versions?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help to rewrite script 3 68
Server Timeout with Loop 6 38
Microsoft SQL ADO Conn Issue 6 41
Questions about INCLUDE FILES 2 21
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 will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 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

20 Experts available now in Live!

Get 1:1 Help Now