Partager via


AspLogErrorRequests Metabase Property

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

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 the AspErrorsToNTLog Metabase Property.

  • 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 the AspErrorsToNTLog property.

  • If AspLogErrorRequests is set to TRUE and the AspErrorsToNTLog property 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 the AspErrorsToNTLog property 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.

ASP error code ASP error Description

ASP 0100

Out of memory

Unable to allocate required memory.

ASP 0101

Unexpected error

The function returned (exception name).

ASP 0102

Expecting string input

The function expects a string as input.

ASP 0103

Expecting numeric input

The function expects a number as input.

ASP 0104

Operation not Allowed

Operation not Allowed

ASP 0105

Index out of range

An array index is out of range.

ASP 0106

Type Mismatch

An unhandled data type was encountered.

ASP 0107

Stack Overflow

The data being processed is over the allowed limit.

ASP 0115

Unexpected error

A trappable error (exception name) occurred in an external object. The script cannot continue running.

ASP 0190

Unexpected error

A trappable error occurred while releasing an external object.

ASP 0191

Unexpected error

A trappable error occurred in the OnStartPage method of an external object.

ASP 0192

Unexpected error

A trappable error occurred in the OnEndPage method of an external object.

ASP 0193

OnStartPage Failed

An error occurred in the OnStartPage method of an external object.

ASP 0194

OnEndPage Failed

An error occurred in the OnEndPage method of an external object.

ASP 0240

Script Engine Exception

A script engine threw exception (exception name) in (object name) from (object name).

ASP 0241

CreateObject Exception

The CreateObject of (object name) caused exception (exception name).

ASP 0242

Query OnStartPage Interface Exception

Querying object's (object name) OnStartPage or OnEndPage methods caused exception (exception name).

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_LOGERRORREQUESTS

Attributes

INHERIT

Default Value

true

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

iis_md_ut_wam

ID

7001

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.