AspLogErrorRequests
AspLogErrorRequests 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. For a list of these errors, see the ASP Error List.
If AspLogErrorRequests is true and AspErrorsToNTLog is false, then the ASP errors will be sent to the IIS log. If these errors are serious or logging to IIS log previously failed, then each error will also be sent to the Windows Event Log.
If AspLogErrorRequests is false, then these errors will only be sent to the IIS Log, and not to the Windows Event Log.
If AspLogErrorRequests is true and AspErrorsToNTLog is true, then all ASP related errors will go to the Windows Event Log and the IIS log.
To completely prevent ASP errors from being logged in the IIS log file, you must disable logging altogether. To accomplish this see the DontLog and LogType properties.
ASP Error List
This table contains the list of ASP errors.
ASP error code | ASP error | Description |
---|---|---|
ASP 0100 | Out of memory | Unable to allocate required memory. |
ASP 0101 | Unexpected error | The function returned (exception name). |
ASP 0102 | Expecting String input | The function expects a String as input. |
ASP 0103 | Expecting numeric input | The function expects a number as input. |
ASP 0104 | Operation not Allowed | Operation not allowed. |
ASP 0105 | Index out of range | An array index is out of range. |
ASP 0106 | Type Mismatch | An unhandled data type was encountered. |
ASP 0107 | Stack Overflow | The data being processed is over the allowed limit. |
ASP 0115 | Unexpected error | A trappable error (exception name) occurred in an external object. The script cannot continue running. |
ASP 0190 | Unexpected error | A trappable error occurred while releasing an external object. |
ASP 0191 | Unexpected error | A trappable error occurred in the OnStartPage method of an external object. |
ASP 0192 | Unexpected error | A trappable error occurred in the OnEndPage method of an external object. |
ASP 0193 | OnStartPage Failed | An error occurred in the OnStartPage method of an external object. |
ASP 0194 | OnEndPage Failed | An error occurred in the OnEndPage method of an external object. |
ASP 0240 | Script Engine Exception | A script engine threw exception (exception name) in (object name) from (object name). |
ASP 0241 | CreateObject Exception | The CreateObject of (object name) caused exception (exception name). |
ASP 0242 | Query OnStartPage Interface Exception | Querying object (object name)'s OnStartPage or OnEndPage methods caused exception (exception name). |
Attribute Name | Attribute Value |
---|---|
XML Data Type | Boolean |
WMI Data Type |
Boolean
|
ADSI Data Type | Boolean |
ABO Data Type | Boolean |
ABO Metabase identifier |
MD_ASP_LOGERRORREQUESTS
|
Attributes | INHERIT |
Default Value | true |
MetaFlagsEx | CACHE_PROPERTY_MODIFIED |
User Type | iis_md_ut_wam |
StartingNumber | Not applicable |
EndingNumber | 0 |
ID | 7001 |
Configurable Locations
You can configure this property at the following locations in the IIS metabase.
Metabase Path | IIS Admin Object Type |
---|---|
/LM/W3SVC/n/ROOT /LM/W3SVC/n/ROOT/virtual_directory_name |
IIsWebVirtualDir |
/LM/W3SVC/n | IIsWebServer |
/LM/W3SVC | IIsWebService |
/LM/W3SVC/n/ROOT/physical_directory_name /LM/W3SVC/n/virtual_directory_name/physical_directory_name |
IIsWebDirectory |
Code Example
For general code examples, please see Code Examples to Configure Metabase Properties