MSXML3.dll 80072efd and 800c0005 errors executing ServerXMLHTTP.send in classic ASP on Windows 7

半世苍凉 提交于 2019-12-01 04:48:53

Solved it for my case, there are plenty of other reasons you might get this error though. The short answer for me was: Check the user the Classic .Net AppPool is running as and make sure your network allows them internet access.

I downloaded Microsoft Network Monitor and looked at the traffic during a failure. The only traffic that might have been related was all going to our proxy server and consisted of a failed attempt to authenticate.

I then checked the app pools in IIS and sure enough the Classic .Net AppPool was set to use a local machine account that wasn't being recognised by the proxy. Changing the account to use to a domain account fixed the error.

@Dan: Did you try with the IP for stackoverflow.com?

set xmlHTTP = server.CreateObject("MSXML2.ServerXMLHTTP")
xmlHTTP.open "get", "http://64.34.119.12/", False
xmlHTTP.send

response.write xmlHTTP.responseText

This error can also occur when using HTTPS if the SSL session cannot be negotiated due to incompatible ciphers.

SSL Labs's SSL Test can help determine which are compatible.

I know the original question was about a non-SSL connection, but I'm putting this out there as this is the first hit on Google when searching for the error message.

I found out that when getting the 800C005 error in my script the connectivity to the soap server I was connecting to makes a difference.

Had to define multiple entries in my windows HOSTS table to run the script without the error.

Put in mysoapserverurl.com that gave an error, when adding www.mysoapserverurl.com that works, leaving only the URL with www. the script gives the error again. (always msxml3.dll error).

This worked for fixing my issue with same error number in vbs file using Microsoft.XmlHttp.

Try adding empty double quotes at end of http.send

http = CreateObject("Microsoft.XmlHttp")
http.open "GET", strURL, False
http.send ""

Worked for me. Good luck to you.

Ives.me

The only reasonable answer I've found on google was this one. I hope it helps.

How do I read the contents of a remote web page? [link removed]

A common error you might receive:

>     msxml3.dll error '80072efd'  
>     A connection with the server could not be established

Make sure that the URL is actually reachable. You may have spelled the domain name wrong, or the site may actually be down. Test using a browser from that machine, or simply running a tracert / ping. Note that ping won't always return results, because many sites block all such traffic (mainly to help eliminate DOS attacks). However, ping should at least let you know the IP address, which means that the domain name was resolved correctly through DNS. Otherwise, it might be that your DNS server is preventing connection.

It could happen if your URL is more than 255 characters in length. Some how XML is not allowing to post more than 255 characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!