ASP Events and Errors

Applies To: Windows Server 2003, Windows Server 2003 with SP1

In Event Viewer, you can open the property pages for each type of log and configure the filter options that generally apply to all events.

IIS increases the degree of control by providing two metabase keys that enable you to specify what is sent to the Windows Events log when ASP events and errors occur: AspLogErrorRequests and AspErrorsToNTLog.

AspLogErrorRequests

The AspLogErrorRequests property controls whether the Web server writes unsuccessful client requests to the Windows event log file. If AspLogErrorRequests is set to TRUE, a standard set of ASP error requests are logged.

If AspLogErrorRequests is set to TRUE and AspErrorsToNTLog is set to FALSE, then the ASP errors are sent to the IIS log. If these errors are serious or logging to the IIS log previously failed, then each error is also sent to the Windows event log.

If AspLogErrorRequests is set to FALSE, these errors are sent only to the IIS log and not to the Windows Event Log. If AspLogErrorRequests is set to TRUE and AspErrorsToNTLog is set to TRUE, then all ASP-related errors go to the Windows event log and the IIS log. For more information about setting the AspLogErrorRequests property, see About Events.

To completely prevent ASP errors from being logged in the IIS log file, you must disable logging altogether. For more information about disabling logging, see Analyzing Log Files.

AspErrorsToNTLog

If the AspErrorsToNTLog key is set to TRUE, all possible ASP errors are sent to the application event log. If this key is set to FALSE, only a subset of all ASP errors is sent. The subset includes the error numbers 100, 101, 102, 103, 104, 105, 106, 107, 115, 190, 191, 192, 193, 194, 240, 241, and 242. This key cannot be set in IIS Manager. It must be set programmatically, using scripts, for example.