Msxml6.dll error '80072ee2' Operation complete

I have an old code that calls .net web services that throws this error if the .net code is cold (not in memory)

msxml6.dll error '80072ee2' The operation timed out 

Rebooting always fixes this

Can I change the timeout? Can I stop .net scrolling? Can I catch the error in classic asp and reload so the user does not see the error?

any other idea to solve this problem.

+6
iis asp-classic
source share
2 answers

Thanks Anthony for the help -pkb

Here is the documentation and the link to MSDN

oServerXMLHTTPRequest.setTimeouts (resolveTimeout, connectTimeout, sendTimeout, receiveTimeout)

Options

resolveTimeout A long integer. The value is used to match host names (for example, "www.microsoft.com") to IP addresses; the default value is infinite, which means no timeout.

ConnectTimeout A long integer. The value is used to establish a communication socket with the target server with a minimum default timeout of 60 seconds.

SendTimeout A long integer. The value is used to send a separate request data packet (if any) to the communication socket on the target server. A large request sent to the server is usually split into several packets; The send timeout is used to send each packet individually. The default value is 30 seconds.

ReceiveTimeout A long integer. The value is used to receive the response data packet from the target server. Large responses will be split into multiple packages; A receive timeout is used to retrieve each packet of data from the socket. The default value is 30 seconds.

http://msdn.microsoft.com/en-us/library/ms760403(VS.85,lightweight).aspx

+3
source share

The ServerXMLHTTTPRequest object has a setTimeouts method: -

 xhr.setTimeouts 30000, 60000, 30000, 120000 

This sets the reception timeout (last number) to 2 minutes (30 seconds by default) and the value you want to play with.

+7
source share

All Articles