Disabling ASP Exception Handling

ASP experts should recognize this error code.

ASP 0115
Unexpected error 
A trappable error occurred in an external object. The script cannot continue running. 
 

This error is caused by an access violation in a component process. The reason ASP is able to display a message after faults like this is because the crash is detected by the built-in exception handling of the ASP process. With IIS 4.0, it is possible to run an ASP application in a isolated process. The extra overhead in system resources required to do this may be worth the added security of knowing a crash will not affect other applications.

When you are debugging an application component, however, it is often easier to detect where faults occur when exception handling is disabled. You can disable exception handling from the Process Options page of the ASP Configuration property sheets. However, the page only appears when you are editing a process level application. This only happens

  1. When the application has been marked as isolated (in its own process), or
  2. When editing the master level properties, which affects all the in-process applications as well.

When you deselect the Enable debug exception handling check box on the Process Options property page, serious application errors will not be captured by ASP. Instead, they will appear as faults in the application process and components running in the same process.