出现 ASP 应用程序错误

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

Knowledge Base article:

Summary

ASP 页是一个 HTML 页面,其中包含在发送到用户浏览器前由 Web 服务器处理的服务器端脚本。 服务器端脚本在浏览器从 Web 服务器请求 .asp 文件时运行。 ASP 由 Web 服务器调用,它会从上到下处理请求的文件,并执行所有脚本命令。 然后,它会设置标准网页的格式并将其发送到浏览器。

解决方法

纠正 ASP 应用程序

如果出现 ASP 应用程序错误,可能的解决方法包括以下这些:

在事件日志消息查找特定的错误号

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

警告:ASP:文件 \\WEBSITES\MYWEBSITE\DEFAULT.ASP 的 UNC 访问失败,错误 = -2147024829。

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

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

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.2008.WebServer
CategoryAlert
EnabledTrue
Event SourceActive Server Pages
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
出现 ASP 应用程序错误
{0}
Event LogApplication

Member Modules:

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

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.2008.ASP.application.error.occured" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.InternetInformationServices.2008.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.2008.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.2008.ASP.application.error.occured.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>