網站和 Web 應用程式相依於 Internet Information Services (IIS) 應用程式集區的可用性。IIS 應用程式集區則繼而相依於 Windows 處理序啟用服務 (WAS)。如果 WAS 不在執行中,或在應用程式集區啟動或關閉期間發生錯誤,則網站和 Web 應用程式可能會無法使用。
可能的解決方式包括:
使用除錯診斷工具來判斷當機原因。
檢查某個錯誤編號的事件記錄訊息詳細資料,以獲得關於錯誤原因的額外資訊。此錯誤編號將與事件 ID 有所不同。
使用偵錯診斷工具
若要使用偵錯診斷工具,請參閱「 如何使用偵錯診斷工具來疑難排解意外停止的 IIS 處理序。
檢查某個錯誤號碼的事件記錄訊息詳細資料
檢查某個錯誤號碼的事件記錄訊息詳細資料以獲得額外資訊:
在 [事件檢視器] 中,選取您收到的事件。
依序按一下 [詳細資料] 索引標籤和 [易閱檢視]。
若有特定的錯誤編號可用,此時應會顯示 [二進位資料:] 的字詞。
在 [在字詞中] 底下,記下冒號後面的數字。
深入了解特定的錯誤號碼
進一步了解特定的錯誤號碼:
從 [ Microsoft Exchange Server 錯誤碼查閱] 頁面下載 Err.exe 公用程式。
開啟提高權限的 [命令提示字元] 視窗。按一下 [開始],指向 [所有程式],按一下 [附屬應用程式],以滑鼠右鍵按一下 [命令提示字元],然後按一下 [以系統管理員身分執行]。
在命令提示字元中,導覽至剛將 Err.exe 下載至其中的目錄。例如,如果您將 Err.exe 下載至 C:\Err,請輸入 cd C:\Err。
鍵入錯誤號碼以取得關於錯誤的詳細資訊。例如,如果特定的錯誤編號是 80070005,則輸入 err 80070005。
在步驟 4 的範例中,錯誤會解析為 ERROR_ACCESS_DENIED,所以您接下來要檢查權限問題。
Target | Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool |
Category | Alert |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider | Default |
Filter | ConditionDetection | Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter | Default |
WA | WriteAction | Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.Worker.process.serving.an.application.pool.reported.a.failure" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider">
<LogName>System</LogName>
</DataSource>
</DataSources>
<ConditionDetection ID="Filter" TypeID="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>5039</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<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.Worker.process.serving.an.application.pool.reported.a.failure.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>