Share via


AspErrorsToNTLog

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 ways:

  • 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, and 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:

    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. For more information about logging requests, 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.

Schema Attributes

Attribute Name

Value

ADSI/WMI Data Type

BOOL

ABO Data Type

DWORD_METADATA

Schema Default

FALSE

Internal Default

FALSE

Upper Bound

0

Lower Bound

Not specified

Internal ID

7024

Friendly ID

MD_ASP_ERRORSTONTLOG

Property Attributes

INHERIT

User Type

IIS_MD_UT_WAM

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path

IIS Admin Object Type

/LM/W3SVC

IIsWebService

/LM/W3SVC/n

IIsWebServer

/LM/W3SVC/n/ROOT/physical_directory_name

/LM/W3SVC/n/virtual_directory_name/physical_directory_name

IIsWebDirectory

/LM/W3SVC/n/ROOT

/LM/W3SVC/n/ROOT/virtual_directory_name

IIsWebVirtualDir

Flags

There are no flags for this property.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also