CreateVirtualDirectory.

AspErrorsToNTLog Property

Summary

Specifies which ASP errors are written to the Windows event log.

Syntax

[TaskAttribute("asperrorstontlog"), IisProperty]
public bool AspErrorsToNTLog { get; set; }

Remarks

ASP errors are written to the client browser and to the IIS log files by default. NAnt.Contrib.Tasks.Web.CreateVirtualDirectory.AspLogErrorRequests is set to true by default, and is modified by NAnt.Contrib.Tasks.Web.CreateVirtualDirectory.AspErrorsToNTLog in the following way:

If NAnt.Contrib.Tasks.Web.CreateVirtualDirectory.AspLogErrorRequests is set to false, then ASP errors are not written to the Windows event log, regardless of the value of NAnt.Contrib.Tasks.Web.CreateVirtualDirectory.AspErrorsToNTLog.

If NAnt.Contrib.Tasks.Web.CreateVirtualDirectory.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 NAnt.Contrib.Tasks.Web.CreateVirtualDirectory.AspErrorsToNTLog.

If NAnt.Contrib.Tasks.Web.CreateVirtualDirectory.AspLogErrorRequests is set to true and NAnt.Contrib.Tasks.Web.CreateVirtualDirectory.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 NAnt.Contrib.Tasks.Web.CreateVirtualDirectory.AspLogErrorRequests is set to true and NAnt.Contrib.Tasks.Web.CreateVirtualDirectory.AspErrorsToNTLog is set to true, then all ASP errors are written to the Windows event log.

Attributes

Type Description
TaskAttribute
CreateVirtualDirectory.IisPropertyAttribute

Value

Type Description
bool