[This is preliminary documentation and subject to change]

### AspErrorsToNTLog

This metabase property specifies whether IIS scripting errors will be written to the Windows Event Log.

The IIsWebService setting for this property is applicable to all in-process application nodes, at all levels. Metabase settings at the IIsWebServer level or lower will be ignored for in-process applications unless that IIsWebServer node is isolated as an out-of-process application.

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.

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
Data Type | BOOL
Attributes | INHERIT
Default Value | FALSE
MetaFlagsEx | CACHE_PROPERTY_MODIFIED
User Type | IIS_MD_UT_WAM
StartingNumber |
EndingNumber | 0
ID | 7024

### Access Locations

This property is accessible at the following locations:

Metabase Path | IIS Admin Object Type
/LM/W3SVC/2 | IIsWebServer
/LM/W3SVC/Info/Templates/Public Web Site | IIsWebServer
/LM/W3SVC/Info/Templates/Secure Web Site | IIsWebServer
/LM/W3SVC | IIsWebService
/LM/W3SVC/1/ROOT | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/_vti_bin | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISAdmin | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISHelp | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/MSADC | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/Scripts | IIsWebVirtualDir
/LM/W3SVC/2/ROOT | IIsWebVirtualDir
/LM/W3SVC/2/ROOT/IISAdmin | IIsWebVirtualDir

### IIS Admin Base Object Information

The following table lists additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier | MD_ASP_ERRORSTONTLOG
Data type | BOOL
User type | IIS_MD_UT_WAM

© 1997-2001 Microsoft Corporation. All rights reserved.