Msxml3.dll error '80072ee2' Operation completed

I have a classic ASP page that reads an external rss feed (XML document) and then displays it on a web page. This worked fine until my website was ported to a new server. I think this is now Windows 2008. My script is now shutting down. I do not think that the problem is actually because it takes too much time, since I increased the timeout values. Does anyone know what could be the problem and how can I fix it?

The website is hosted on a shared server, so I do not have much access to change any 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 a timeout for the last line (objHTTP.send). RSSURL can be any external RSS feed. I tested http://www.valewisham.org.uk/rss.xml .

+4
source share
1 answer

I rarely use setTimeouts, because in most cases you need a common 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 third parameter of the open method to true to execute an asynchronous request, then waits for a response after sending, turning off the time after 60 seconds.

+2
source

Source: https://habr.com/ru/post/1381289/


All Articles