ASP 应用程序发生错误

Microsoft.Windows.InternetInformationServices.6.2.ASP.application.error.occured (Rule)

Knowledge Base article:

摘要

ASP 页面是一个包含服务器端脚本的 HTML 页面,此脚本将由 Web 服务器进行处理之后发送到用户浏览器。当浏览器从 Web 服务器请求 .asp 文件时,服务器端脚本将会运行。Web 服务器将调用 ASP,然后从上至下处理请求的文件并执行任何脚本命令。再将文件转换为标准的 Web 页面并将其发送到浏览器。

解决方法

更正 ASP 应用程序

如果 ASP 应用程序发生错误,可能的解决方法包括:

检查事件日志消息中的特定错误号

若要检查事件日志消息中的特定错误号,请执行以下操作:

警告:ASP:无法对文件 - \\WEBSITES\MYWEBSITE\DEFAULT.ASP 进行 UNC 访问,错误为 = -2147024829。

查找有关特定错误号的详细信息

若要了解有关特定错误号的详细信息,请执行以下操作:

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WebServer
CategoryAlert
EnabledTrue
Event SourceActive Server Pages
Alert GenerateFalse
RemotableTrue
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
WA WriteAction Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.ASP.application.error.occured" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.WebServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Active Server Pages</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(500|499|23|22|21|20|19|18|17|16|9|8|7|6|5)$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.6.2.ASP.application.error.occured.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>