when doing the following- xmlhttp.Send(xmlSend);
on this object- var xmlhttp = new ActiveXObject("MsXml2.XmlHttp")
I sometimes get an error (after an IIS reset) that-
“The download of the specified resource has failed”
but sometimes it works.
I've read that it may be due to the version of MSXML that I'm using, but I've tried different versions- (MSXML2.XMLHTTP.6.0) and it doesnt seem to make a difference.
Any idea why this is happening?
(The xml I'm sending is always the same and is ok)
This is an AJAX problem, I will have it moved there. I would suggest using the following code to call your AJAX XML initialization.
Code:
var xmlHttp;
try{xmlHttp = new XMLHttpRequest();}
catch(e){
try{xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){
try{xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){
alert("Your browser does not support AJAX!");
return false;
}
}
}
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Can you please post the whole sending function? Are there any abnormalities that happen when it fails besides the IIS reset? Is the reset a server problem or user initiated?
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Bookmarks