發生 ASP 應用程式錯誤

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

Knowledge Base article:

摘要

ASP 頁面是包含伺服器端指令碼的 HTML 頁面,這些指令碼在傳送至使用者的電腦之前會經由 Web 伺服器處理。伺服器端指令碼會在瀏覽器從 Web 伺服器要求 .asp 檔案時執行。ASP 是由 Web 伺服器所呼叫,Web 伺服器會從上到下處理所要求的檔案,並執行所有指令碼命令。接著它會將標準網頁格式化並傳送給瀏覽器。

解決方式

修正 ASP 應用程式

如果發生 ASP 應用程式錯誤,可能的解決方法包括:

查看事件記錄檔訊息中的特定錯誤號碼

查看事件記錄檔訊息中的特定錯誤號碼:

警告:ASP:UNC 存取檔案失敗 - \\WEBSITES\MYWEBSITE\DEFAULT.ASP,錯誤 = -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>