I have a classic ASP page that I'm trying to debug in IIS on Windows 7. This page works fine on another computer running Windows Server 2003 on a different network. Also, on a Windows 7 machine, I can successfully open this URL in a browser.
Page error while executing ServerXMLHTTP.send () with error:
msxml3.dll error '80072efd' A connection with the server could not be established
This code looks like this (last line does not work):
set xmlHTTP = server.CreateObject("MSXML2.ServerXMLHTTP") xmlHTTP.open "get", "http://stackoverflow.com", False xmlHTTP.send
I searched around and the most useful search was to use NetSh to set proxies for winHTTP. The problem machine is located on a network that uses a proxy server. However, even after installing the proxy server and rebooting, I still get the same error.
The change
set xmlHTTP = server.CreateObject("MSXML2.ServerXMLHTTP")
to
set xmlHTTP = server.CreateObject("MSXML2.XMLHTTP")
gives a slightly different error:
msxml3.dll error '800c0005' The system cannot locate the resource specified.
I also tried installing MSXML4 SP3 and explicitly creating a v4 object using:
set xmlHTTP = server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
I am still getting the same errors except the msxml4.dll message in the message.
Finally, I tried disabling the Forefront TMG proxy client by telling my browser not to use a proxy server and using netsh to reset the proxy for winHTTP. Nevertheless, the same errors, although the browser can still access the Internet.
From what I found, I believe that this should be a problem with connecting to this particular machine on the specific network in which it is located. However, I do not know what the problem is. Any suggestions gratefully received.