為確保網站和 Web 應用程式的隔離狀態,必須將 Internet Information Services (IIS) 應用程式集區設為具有唯一名稱和設定正確的身分識別。如果在設定應用程式集區期間發生錯誤,則應用程式集區可能無法供處理其獲指派的網站和 Web 應用程式。
如事件記錄訊息所示,修正應用程式集區組態。若問題仍然存在,請檢查 ApplicationHost.config 檔案並確認已啟動所有必要服務。在某些情況下,您可能必須停止和重新啟動 WAS。
透過 Internet Information Services (IIS) 管理員來編輯應用程式集區組態
編輯應用程式集區組態:
依序按一下 [開始]、[控制台] 和 [系統管理工具]。
對 [Internet Information Services (IIS) 管理員] 按滑鼠右鍵,然後選取 [以系統管理員身分執行]。
在 [連線] 窗格中,展開伺服器節點並選取 [應用程式集區]。
在 [功能檢視] 中,選取您要設定的應用程式集區。
在 [動作] 窗格中,按一下 [進階設定]。
依事件記錄訊息所示,修正應用程式集區組態。
按一下 [確定]。
停止和重新啟動 WAS
停止和重新啟動 WAS:
注意:停止 WAS 也會同時停止相依於 WAS 的所有其他服務,包括 World Wide Web Publishing 服務 (W3SVC)。因此,您可能也必須重新啟動 W3SVC 或其他服務。
開啟提高權限的 [命令提示字元] 視窗。按一下 [開始],將滑鼠游標指向 [所有程式],按一下 [附屬應用程式],對 [命令提示字元] 按滑鼠右鍵,然後按一下 [以系統管理員身分執行]。
在命令提示字元中輸入 net stop was /y。
在命令提示字元中輸入 net start was。
若要重新啟動 W3SVC,請從命令提示字元輸入 net start w3svc。此外,也請啟動在 WAS 關閉時停止的所有其他服務。
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.WWW.service.failed.to.properly.configure.the.application.pool.queue.length" Enabled="onEssentialMonitoring" 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>1087</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC</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.WWW.service.failed.to.properly.configure.the.application.pool.queue.length.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>