HOWTO: Use MTS to Trap Error 'ASP 0113' Script Timed Out (182036)
The information in this article applies to:
- Microsoft Visual InterDev 1.0
- Microsoft Visual InterDev 6.0
- Microsoft Active Server Pages
- Microsoft Transaction Server 2.0
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Server 5.0
This article was previously published under Q182036 SUMMARY
In a production environment, it is common to trap any errors that occur in your Active Server Pages (ASP) page by using the statement "On Error Resume Next." However, if a script time-out error occurs, it is not possible to trap that error by using this method because the ScriptTimeout is happening separately from the ASP error collection.
If, however, you make the ASP page transactional, you will be able to, in
essence, handle the error. When the script time-out occurs, the transaction will have failed, and if you made any changes to a resource that supports
transactions, such as Microsoft SQL Server, the changes will be rolled back. In addition, your ASP page can contain a procedure named OnTransactionAbort() that will execute when the transaction fails, even if the failure was due to a time-out or other error in that ASP page. The client will still receive the ASP 0113, but by using OnTransactionAbort, you have the ability to so something after the ScriptTimeout has occurred.
REFERENCES
Additional samples of ASP functionality can be found in the Windows NT
Option Pack Documentation. This documentation is installed by default and
can be accessed from your Web server at the following location:
For the latest Knowledge Base articles and other support information on
Visual InterDev and Active Server Pages, see the following page on the
Microsoft Technical Support site:
Modification Type: | Major | Last Reviewed: | 5/2/2006 |
---|
Keywords: | kbcode kbDatabase kbhowto kbScript KB182036 |
---|
|