msxml3.dll错误'80072ee2'操作超时 [英] msxml3.dll error '80072ee2' The operation timed out

查看:286
本文介绍了msxml3.dll错误'80072ee2'操作超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个经典的ASP页面,该页面正在读取外部rss feed(xml文档),然后将其显示在网页上.在我的网站移至新服务器之前,它一直运行良好.我认为它现在是Windows2008.我的脚本现在超时.我认为问题不在于实际上是因为我增加了超时值而花费的时间太长.有谁知道这个问题可能是什么以及我该如何解决?

I have a classic ASP page that is reading an external rss feed (xml document) and then displaying it on a web page. This was working fine until my website was moved to a new server. I think it is now Windows 2008. My script is now timing out. I don't think the problem is actually because it is taking too long as I have increased the time out values. does anyone know what the problem may be and how I can fix it?

该网站托管在共享服务器上,因此我无权更改任何服务器设置.

The website is hosted on a shared server so I don't have much access to change any of the server settings.

我正在使用的代码是

Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")

' resolve, connect, send, receive - in milliseconds 
objhttp.setTimeouts 5000, 60000, 10000, 10000 

objHTTP.open "GET",RSSURL,false
objHTTP.send

该代码返回最后一行(objHTTP.send)的超时."RSSURL"可以是任何外部RSS提要.我正在使用 http://www.valewisham.org.uk/rss.xml 进行测试

The code returns the time out for the last line (objHTTP.send). "RSSURL" can be any external RSS feed. I was testing with http://www.valewisham.org.uk/rss.xml.

推荐答案

我很少使用setTimeouts,因为在大多数情况下,您希望整体请求超时,请尝试以下方法:

I rarely use setTimeouts, because in most case you want an overall request timeout, try this instead:

Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")

objHTTP.open "GET", RSSURL, true
objHTTP.send

objHttp.WaitForResponse 60

此代码将open方法的第三个参数设置为true以便发出请求,然后在发送后等待响应,在60秒后超时

This code sets the open method third parameter to true in order to do an asynch request, then waits for the response after the send, timing out after 60 seconds

这篇关于msxml3.dll错误'80072ee2'操作超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆