Link to home
Start Free TrialLog in
Avatar of bdbsailor
bdbsailor

asked on

Microsoft.XMLHTTP: error (0x800C0005)

code:

<%

Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "GET", "http://users.pandora.be/hts/error", true
xml.Send


Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile("c:\err.txt", True)

MyFile.writeLine(xml.responseText)
response.Write (xml.responseText)

MyFile.Close
%>

this is a known script for retrieving the content of a webpage
when I ran the script the first time (localhost) I had error (0x800c005)
When I loaded the "http://users.pandora.be/hts/error" en ran then the script again all seems ok
when I changed the content of "http://users.pandora.be/hts/error" the asp page showed me the content of the previous error file.
When I cleared the cache again I received error (0x800c005)

is there a way to preload "http://users.pandora.be/hts/error" on serverside or there an other way?

thanks

Bart - Belgium
Avatar of TheKenman
TheKenman
Flag of United States of America image

I couldn't find any info on 0x800c005, does it come with error text?

As far as pre-loading, I haven't needed that much, but I think you can pre-cache content by using file includes.
ASKER CERTIFIED SOLUTION
Avatar of deighc
deighc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Anthony Perkins
deighc,

>>You're making an asynchronous connection to the remote server. <<
Good catch!
Avatar of bdbsailor
bdbsailor

ASKER

error text 0x800c005?? nothing

Error Type:
(0x800C0005)
/checklist/testretrieve.asp, line 20


that's all I get

sorry, I used "GET", "http://users.pandora.be/hts/error", false all the time but in a way for testing I used 'True' (asynch).

today I tried an other server with another text - file and didn't get the 0x800c005 BUT always I received the same content unless the content of the text on the webpage changed.

other ideas?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I thought my solution worked for him.... cauz he never replied after that... lol.

Khurram.