+ -
当前位置:首页 → 问答吧 → 访问网站出现:msxml3.dll 错误 '80072ee2' The operation timed out

访问网站出现:msxml3.dll 错误 '80072ee2' The operation timed out

时间:2011-07-22

来源:互联网


msxml3.dll   错误   '80072ee2 '  

The   operation   timed   out  

nsdc/str/STR_cas_Property.asp,行   1441  

判断:

脚本运行操作超时。

源代码:
[quote]
        set   xml   =   server.createObject( "MSXML2.serverXMLHTTP ")
        xml.open   "GET ",   Thermstr   ,   False
        xml.send
[/quote]

看起来是访问目标网站链接失败,然后超时了。请问如何解决这个链接失败的问题?
就是:当链接时间超过一段时间后,我自动放弃该链接,避免页面上报告错误?

作者: jingnidai   发布时间: 2011-07-22

setTimeouts 可设置超时
lResolve = 5 * 1000
lConnect = 5 * 1000
lSend = 15 * 1000
lReceive = 15 * 1000
xmlServerHttp.setTimeouts lResolve, lConnect, lSend, lReceive
xmlServerHttp.open "GET", "http://localhost/sample.xml", False
xmlServerHttp.send

作者: hookee   发布时间: 2011-07-23