Solved

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

Posted on 2006-06-09
5
5,850 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
If condition on Html with Asp 11 48
Syntax for query to update table 2 53
Html fieldset fix its height and width 4 55
Adjust an existing ASP Query 45 28
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 would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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