• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

works for msxml3 but not msxml4

I am trying to use this ASP code on a server with msxml4 installed and i get athis error message"The object does not exisits"

If i try the same code on a server with msxml3 installed then it works.

is their somthing silly that i am missing?

<%
dim objXMLHTTP
dim SEARCH_STR
      IF Request("WORD") = "" THEN
            SEARCH_STR = "PSP"
      ELSE
            SEARCH_STR = Request("WORD")
      END IF
URL = "http://search.ebay.com/"& SEARCH_STR
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "GET", URL, false
objXMLHTTP.Send
start = InStr(objXMLHTTP.responsetext, "<html>")
finish = InStr(objXMLHTTP.responsetext, "</html>")
amount = finish - start
extract = Mid(objXMLHTTP.responsetext,start,amount)
Response.Write URL
Response.Write extract
Set objXMLHTTP = Nothing
%>
0
willa666
Asked:
willa666
  • 4
  • 2
1 Solution
 
German_RummCommented:
Hi willa666,

Try
Server.CreateObject("Msxml2.XMLHTTP.4.0");

---
German Rumm.
0
 
willa666Author Commented:
Hi German_Rumm

Now it reads
Set objXMLHTTP = Server.CreateObject("Msxml2.XMLHTTP.4.0")

But i get this error message

msxml4.dll error '800c0005'

The system cannot locate the resource specified.

/index3.asp, line 33
0
 
b1xml2Commented:
using Msxml2.XmlHttp actually piggybacks off the wininet.dll

on the server, you should use Msxml2.ServerXMLHTTP and run the proxycfg.exe to set the proxy settings if there is one. the code remains the same with some extra features

how to identify errors with ServerXMLHTTP (also applies to XMLHTTP)
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q299566&ID=KB;EN-US;Q299566

ServerXMLHTTP
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmobjxmldomserverxmlhttp.asp
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
willa666Author Commented:
Hi b1xml2

So what do you think is happening for this error to occure?
0
 
willa666Author Commented:
I have got it working again, but i have changed it to
Server.CreateObject("WinHttp.WinHttpRequest.5.1")

0
 
b1xml2Commented:
that is the core object. It might be they applied Service Pack 2 for Msxml4. A lot of stuff stopped working after SP2 was applied.
0
 
willa666Author Commented:
cool well i guess that sorts out that !
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now