msxml3.dll 错误 '80072ee2'操作超时
我有一个经典的 ASP 页面,它读取外部 rss 提要(xml 文档),然后将其显示在网页上。在我的网站转移到新服务器之前,这一切都工作正常。我认为现在是 Windows 2008。我的脚本现在超时了。我认为问题实际上并不是因为我增加了超时值而花费了太长时间。有谁知道问题可能是什么以及我该如何解决它?
该网站托管在共享服务器上,因此我没有太多访问权限来更改任何服务器设置。
我正在使用的代码是
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 进行测试。
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.
The code I'm using is
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
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我很少使用setTimeouts,因为在大多数情况下你想要一个整体的请求超时,请尝试这样做:
此代码将open方法的第三个参数设置为true以便执行异步请求,然后在发送后等待响应,之后超时60秒
I rarely use setTimeouts, because in most case you want an overall request timeout, try this instead:
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