WWW 服務無法正確設定應用程式集區的負載平衡器功能

Microsoft.Windows.InternetInformationServices.10.0.WWW.service.failed.to.properly.configure.the.load.balancer.capabilities.on.application.pool (Rule)

Knowledge Base article:

摘要

為確保網站和 Web 應用程式的隔離狀態,必須將 Internet Information Services (IIS) 應用程式集區設為具有唯一名稱和設定正確的身分識別。如果在設定應用程式集區期間發生錯誤,則應用程式集區可能無法供處理其獲指派的網站和 Web 應用程式。

解決方式

如事件記錄訊息所示,修正應用程式集區組態。若問題仍然存在,請檢查 ApplicationHost.config 檔案並確認已啟動所有必要服務。在某些情況下,您可能必須停止和重新啟動 WAS。

透過 Internet Information Services (IIS) 管理員來編輯應用程式集區設定

編輯應用程式集區設定:

停止和重新啟動 WAS

停止和重新啟動 WAS:

注意:停止 WAS 也會同時停止相依於 WAS 的所有其他服務,包括 World Wide Web Publishing 服務 (W3SVC)。因此,您可能也必須重新啟動 W3SVC 或其他服務。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.ApplicationPool
CategoryAlert
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.Server.IIS.10.0.WarningAndErrorEventProvider Default
Filter ConditionDetection Microsoft.Windows.InternetInformationServices.10.0.ApplicationPool.EventFilter Default
WA WriteAction Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.10.0.WWW.service.failed.to.properly.configure.the.load.balancer.capabilities.on.application.pool" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.ApplicationPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.10.0.WarningAndErrorEventProvider">
<LogName>System</LogName>
</DataSource>
</DataSources>
<ConditionDetection ID="Filter" TypeID="Microsoft.Windows.InternetInformationServices.10.0.ApplicationPool.EventFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>1086</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.10.0.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.10.0.WWW.service.failed.to.properly.configure.the.load.balancer.capabilities.on.application.pool.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>