Share via


AspErrorsToNTLog Metabase Property

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

The AspErrorsToNTLog property specifies which ASP errors are written to the Windows event Log. ASP errors are written to the client browser and to the IIS log files by default.

AspErrorsToNTLog is set to FALSE by default, and modifies the AspLogErrorRequests property in the following way:

  • If AspLogErrorRequests is set to FALSE, then ASP errors are not written to the Windows event log, regardless of the value of AspErrorsToNTLog.

  • If AspLogErrorRequests is set to TRUE, then if IIS fails to write an item to the IIS log file, the item is written to the Windows event log as a warning, regardless of the value of AspErrorsToNTLog.

  • If AspLogErrorRequests is set to TRUE and AspErrorsToNTLog is set to FALSE, then only the most serious ASP errors are sent to the Windows event log. Serious ASP errors are numbers 100, 101, 102, 103, 104, 105, 106, 107, 115, 190, 191, 192, 193, 194, 240, 241, and 242.

  • If AspLogErrorRequests is set to TRUE and AspErrorsToNTLog is set to TRUE, then all ASP errors are written to the Windows event log.

Note

This property does not control logging requests to the IIS log files. To accomplish this see the LogType and DontLog properties. Also, this property does not control IIS Event Messages, which are always sent to the Windows event log.

This property is a process-level property.

If this property set at the Web service level, it is applicable to all in-process application keys. Metabase property settings at the Web site level or lower are ignored for in-process applications unless the Web site key is isolated as an out-of-process application.

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

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, see Code Examples to Configure Metabase Properties.