Solved

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

Posted on 2006-06-09
5
5,736 Views
Last Modified: 2012-06-27
Is there some way I can handle this?
I am sending data to a remote page which should in turn send back a reply if the data is found on the remote server.
However, if it is not found, it does not send back a reply, it times out which completely halts my script.

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

What I would like is if after a certain amount of time, to maybe response.write "No one's home, continuing..."
That would seem like the way to go if there's no way to stop that error from arising.
The timeout is already set for the XMLRPC:

const XRPC_RESOLVE_TIMEOUT = 5000
const XRPC_CONNECT_TIMEOUT = 500
const XRPC_SEND_TIMEOUT             = 1000
const XRPC_RECEIVE_TIMEOUT = 10000

So if the data IS found, then we can use those timeout values, but is there some way to say
Call the script for 4 seconds, ..."ok 4 seconds is up...No one's home, continuing..."?
0
Comment
Question by:JuniorBee
  • 3
5 Comments
 
LVL 25

Accepted Solution

by:
clockwatcher earned 450 total points
ID: 16875477
Wrap your request in an error handler:

on error resume next

'make your call that might throw an error
DoThisMightTimeOut()

if err.number > 0 then  ' we've got an error
  if err.number = 2147954402 then
     response.write "Looks like we timed out"
  else
     response.write "Error: " & err.number & " : " & err.description
  end if
else  
  'do whatever you want to do if an error didn't happen
  on error goto 0 'turn the error handling back off

end if

on error goto 0 'don't want the error handler any more
'do whatever applies in either case
response.write "goodbye"


0
 
LVL 33

Assisted Solution

by:hongjun
hongjun earned 50 total points
ID: 16875829
Check remote is alive???


<%
  Response.Buffer = True
  Dim objXMLHTTP, xml
  sPath = Request.QueryString
  sUrl = "http://www.server_address_here.com"
  ' Create an xmlhttp object:
  Set xml = Server.CreateObject("Microsoft.XMLHTTP")
  ' Or, for version 3.0 of XMLHTTP, use:
  ' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
  xml.Open "GET", sUrl, False
  xml.Send

  If xml.ReadyState <> 4 Then
      Response.Write "Server is down!!!"
      Response.End
  Else
      ' Do you usual stuff here.
  End If
  Set xml = Nothing
%>


hongjun
0
 

Author Comment

by:JuniorBee
ID: 16877040
Thanks clockwatcher.  Works!
0
 

Author Comment

by:JuniorBee
ID: 16877043
Ah hongjun, didn't see your solution there.  I will give it a try as well.  Looks interesting to check the status  before sending the data!
0
 

Author Comment

by:JuniorBee
ID: 16877065
hongjun, that does check the status of the URL, but does not check the actual channel that is being send va xmlrpc.  The problem was that the channel no longer exists on the remote server so it could not send a response back.  That is why the time out error kept happening.  So while it is good to check if the URL is up, I still need to be able to know if the channel is alive or not.  The only way to know if it's not there is if I get a script timeout error and to handle it...it seems.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now