XML: download of the specified resource has failed

Published by

Posted on February 01, 2009

Error Description: The download of the specified resource has failed.
Error Source: msxml3.dll
Error Number: -2146697208

Snippet of code :
Set xml = Server.CreateObject(“Microsoft.XMLHTTP”)
xml.open “POST”, “https://remotehost”, false
xml.send vPostData
strStatus = xml.Status
rv = xml.responseText
Set xml = nothing

Error: -2146697208 The download of the specified resource has failed’ means that the remote server where you are trying to connect is not connectable at this moment. I also experinced this issue many times in scheduled programms communicating with remote servers. This issue may arise due to network issue or internet connection issue or sometimes because of unresolved DNS..

You can try to reduce the chances of getting this error by adding your remote server entry in hosts file to avoid unresolved DNS error or use IP address to connect to the remote server. Rest you have to live with it as per my understanding.. Only thing you can do is handle this exception in a better way and keep on connecting server at regular intervals till you get a response from the server..

Exchange Forum