PRB: ASP Class_Terminate Code Errors Can Cause Internet Information Server 4.0 to Fail (319549)
The information in this article applies to:
- Microsoft Internet Information Server 4.0
This article was previously published under Q319549 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: SYMPTOMS
When you use an ASP class with the Class_Terminate function, and the object is implicitly destroyed, the Internet Information Server (IIS) process in which the page is running (Inetinfo.exe or Mtx.exe) silently fails if there are code errors in the Class_Terminate function.
If the Class object is explicitly destroyed, the client returns with the script engine error details.
CAUSE
If the ASP Class object is not explicitly destroyed (for example, if you set it to Nothing), code errors in the Class_Terminate function cause the IIS process to fail, but no error messages are returned.
RESOLUTION
To make sure that code errors on the Class_Terminate function do not cause such a failure, you have to explicitly destroy ASP Class objects in the page.
Alternatively, you can use 'On Error Resume Next' in the Class_Terminate function; however, this is not recommended because code errors are not generated to the client.
STATUS
Microsoft Internet Information Services (IIS) 5.0 handles the code error without a failure occurring in Inetinfo.exe or Dllhost.exe, but it does not return an error to the client as expected and the remaining code in the Class_Terminate function does not run.
Modification Type: | Minor | Last Reviewed: | 6/22/2005 |
---|
Keywords: | kbnofix kbprb KB319549 |
---|
|