msxml3.dll 错误 '80072ee2'操作超时

发布于 2024-12-15 11:47:47 字数 661 浏览 6 评论 0原文

我有一个经典的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寂寞清仓 2024-12-22 11:47:48

我很少使用setTimeouts,因为在大多数情况下你想要一个整体的请求超时,请尝试这样做:

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

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

objHttp.WaitForResponse 60

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

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

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文