P
Patrick
I understand that with IIS5.1 on Windows XP Professional SP1, I can
1) Either set under IIS Manager-> Any specific Virtual Directory->
Configuration->Options->ASP Script timeout for all pages within that
directory OR
2) Within a specific page, set the timeout as per
http://www.microsoft.com/windows200...indows2000/en/server/iis/htm/asp/vbob246s.htm
e.g. <% Server.ScriptTimeout = 1 %>
and that the value in 2 cannot be less than that of 1
What I am doing from an ASP page is as follows:
Dim objOrderClient
objOrderClient = CreateObject("Order.Client")
objOrderClient.PlaceOrder(objOrder)
The problem is that objOrderClient.PlaceOrder can potentially "time-out".
What I want is for the ASP Script to give the ActiveX Object (a .NET Class
library which I invoke via .NET/COM Interop) up to 30 seconds to run, and if
the ActiveX Object does not "return" within 30 seconds, then handle the
timeout according (e.g. redirect to an error page or to display a custom
error message). Checking err.description does *not* work:
On error resume next
' Some more code
Dim objOrderClient
objOrderClient = CreateObject("Order.Client")
objOrderClient.PlaceOrder(objOrder)
If err.number<>0 then
%>
SOS SOS <br>
<%=err.Description%>
<%
end if
Because, obviously the script is timing out at the point when PlaceOrder is
executing!
What I get is the following standard Microsoft error, which is rather
unprofessional for a production website!
Script timed out
/Publications/testiorder.asp
The maximum amount of time for a script to execute was exceeded. You can
change this limit by specifying a new value for the property
Server.ScriptTimeout or by changing the value in the IIS administration
tools.
1) Either set under IIS Manager-> Any specific Virtual Directory->
Configuration->Options->ASP Script timeout for all pages within that
directory OR
2) Within a specific page, set the timeout as per
http://www.microsoft.com/windows200...indows2000/en/server/iis/htm/asp/vbob246s.htm
e.g. <% Server.ScriptTimeout = 1 %>
and that the value in 2 cannot be less than that of 1
What I am doing from an ASP page is as follows:
Dim objOrderClient
objOrderClient = CreateObject("Order.Client")
objOrderClient.PlaceOrder(objOrder)
The problem is that objOrderClient.PlaceOrder can potentially "time-out".
What I want is for the ASP Script to give the ActiveX Object (a .NET Class
library which I invoke via .NET/COM Interop) up to 30 seconds to run, and if
the ActiveX Object does not "return" within 30 seconds, then handle the
timeout according (e.g. redirect to an error page or to display a custom
error message). Checking err.description does *not* work:
On error resume next
' Some more code
Dim objOrderClient
objOrderClient = CreateObject("Order.Client")
objOrderClient.PlaceOrder(objOrder)
If err.number<>0 then
%>
SOS SOS <br>
<%=err.Description%>
<%
end if
Because, obviously the script is timing out at the point when PlaceOrder is
executing!
What I get is the following standard Microsoft error, which is rather
unprofessional for a production website!
Script timed out
/Publications/testiorder.asp
The maximum amount of time for a script to execute was exceeded. You can
change this limit by specifying a new value for the property
Server.ScriptTimeout or by changing the value in the IIS administration
tools.