AspLogErrorRequests

IIS 6.0

The AspLogErrorRequests property controls whether the Web server writes ASP errors to the application section of the Windows event log. ASP errors are written to the client browser and to the IIS log files by default.

AspLogErrorRequests is set to TRUE by default, and is modified by the AspErrorsToNTLog 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, 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 error numbers 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.

NoteNote:

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.

Attribute Name

Value

ADSI/WMI Data Type

BOOL

ABO Data Type

DWORD_METADATA

Schema Default

TRUE

Internal Default

TRUE

Upper Bound

0

Lower Bound

Not specified

Internal ID

7001

Friendly ID

MD_ASP_LOGERRORREQUESTS

Property Attributes

INHERIT

User Type

IIS_MD_UT_WAM

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

There are no flags for this property.

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

Show: