[This is preliminary documentation and subject to change]

AspLogErrorRequests

This property controls whether the Web server writes unsuccessful client requests to the Windows Event Log file. If AspLogErrorRequests is TRUE, a standard set of ASP error requests are logged. For a list of these errors see the ASP Error List heading below.

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.

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.

ASP Error List

This table contains a list of ASP errors that will be logged by the Windows Event Log if this property is set to TRUE.
ASP error codeASP errorDescription
ASP 0100Out of memoryUnable to allocate required memory.
ASP 0101Unexpected errorThe function returned (exception name).
ASP 0102Expecting string inputThe function expects a string as input.
ASP 0103Expecting numeric inputThe function expects a number as input.
ASP 0104Operation not AllowedOperation not allowed.
ASP 0105Index out of rangeAn array index is out of range.
ASP 0106Type MismatchAn unhandled data type was encountered.
ASP 0107Stack OverflowThe data being processed is over the allowed limit.
ASP 0115Unexpected errorA trappable error (exception name) occurred in an external object. The script cannot continue running.
ASP 0190Unexpected errorA trappable error occurred while releasing an external object.
ASP 0191Unexpected errorA trappable error occurred in the OnStartPage method of an external object.
ASP 0192Unexpected errorA trappable error occurred in the OnEndPage method of an external object.
ASP 0193OnStartPage FailedAn error occurred in the OnStartPage method of an external object.
ASP 0194OnEndPage FailedAn error occurred in the OnEndPage method of an external object.
ASP 0240Script Engine ExceptionA script engine threw exception (exception name) in (object name) from (object name).
ASP 0241CreateObject ExceptionThe CreateObject of (object name) caused exception (exception name).
ASP 0242Query OnStartPage Interface ExceptionQuerying object (object name)'s OnStartPage or OnEndPage methods caused exception (exception name).
Attribute NameAttribute Value
Data TypeBOOL
AttributesINHERIT
Default ValueTRUE
MetaFlagsExCACHE_PROPERTY_MODIFIED
User TypeIIS_MD_UT_WAM
StartingNumber
EndingNumber0
ID7001

Access Locations

This property is accessible at the following locations:

Metabase PathIIS Admin Object Type
/LM/W3SVC/2IIsWebServer
/LM/W3SVC/Info/Templates/Public Web SiteIIsWebServer
/LM/W3SVC/Info/Templates/Secure Web SiteIIsWebServer
/LM/W3SVCIIsWebService
/LM/W3SVC/1/ROOTIIsWebVirtualDir
/LM/W3SVC/1/ROOT/_vti_binIIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISAdminIIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISHelpIIsWebVirtualDir
/LM/W3SVC/1/ROOT/MSADCIIsWebVirtualDir
/LM/W3SVC/1/ROOT/ScriptsIIsWebVirtualDir
/LM/W3SVC/2/ROOTIIsWebVirtualDir
/LM/W3SVC/2/ROOT/IISAdminIIsWebVirtualDir

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_LOGERRORREQUESTS
Data typeBOOL
User typeIIS_MD_UT_WAM

Related Topics

AspErrorsToNTLog

© 1997-2001 Microsoft Corporation. All rights reserved.