Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > XMLHTTP SEND and 0x800C0005 error

Reply
Thread Tools

XMLHTTP SEND and 0x800C0005 error

 
 
kenny
Guest
Posts: n/a
 
      01-29-2004
Dears,
I create one asp program like below, but when I run the asp as http://localhost/test.asp, I meet 0x800C0005 error...How to solve it?
'****************test.asp*************************
<%

Dim objXMLHTTP, xml


Set xml = Server.CreateObject("Microsoft.XMLHTTP")

xml.Open "GET", "http://www.microsoft.com/", False

' Pull the data from the web page
xml.Send


Response.write "Here's the html we now have in our xml object"
Response.write "<BR><BR><BR>"
Response.Write "<xmp>"
Response.Write xml.responseText
Response.Write "</xmp>"
Response.write "<BR><BR><BR>"
Response.write " Now here's how the page looks:<BR><BR>"
Response.Write xml.responseText


Set xml = Nothing
%>
'*****************************************

 
Reply With Quote
 
 
 
 
Atrax
Guest
Posts: n/a
 
      01-29-2004
well, the first most obvious question is "are you connected to the net"?



________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonk...trax.RichEdit/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Aaron Bertrand - MVP
Guest
Posts: n/a
 
      01-29-2004
> I meet 0x800C0005 error...How to solve it?

That's great, but what is the TEXT of the message? You don't expect people
to identify hex codes in one glance, do you?

Anyway, try setting the user agent header, as I'm sure microsoft.com tries
to prevent being overrun by spiders, xmlhttp requests, etc. You can see
sample code at http://www.aspfaq.com/2173

Or, run your test against a site that is not such an obvious "test"
destination that would implement any kind of packet blocking/filtering...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send XMLHTTP object from a button input jr Javascript 6 08-01-2010 03:53 PM
Msxml*.XMLHTTP vs. Microsoft.XMLHTTP yawnmoth Javascript 11 11-09-2006 08:44 PM
Can't send cookies using XMLHTTP Lu Wei Javascript 1 08-13-2006 05:06 AM
Msxml2.XMLHTTP object's send method throwing HTTP /1.1 405 - Method not allowed error. RK Javascript 5 08-08-2004 08:52 PM
error message msxml3.dll (0x800C0005) shubha ASP General 0 01-14-2004 01:31 PM



Advertisments