AspErrorsToNTLog
AspErrorsToNTLog specifies whether IIS scripting errors are written to the Windows Event Log.
The IIsWebService setting for this property is applicable to all in-process application keys, at all levels. Metabase property settings at the IIsWebServer level or lower are ignored for in-process applications unless the IIsWebServerkey is isolated as an out-of-process application.
If AspLogErrorRequests is set totrue and AspErrorsToNTLog is set to false,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.
Note 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.
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_ERRORSTONTLOG
|
Attributes | INHERIT |
Default Value | false |
MetaFlagsEx | CACHE_PROPERTY_MODIFIED |
User Type | iis_md_ut_wam |
StartingNumber | Not applicable |
EndingNumber | 0 |
ID | 7024 |
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