無效的網站繫結

Microsoft.Windows.InternetInformationServices.6.2.WebSite.InvalidBindings.Monitor (UnitMonitor)

Knowledge Base article:

摘要

使用 HTTP 的 Internet Information Services (IIS) 網站依賴數個重要的 IIS 元件來支持其可用性。Windows 處理序啟用服務 (WAS)、World Wide Web Publishing 服務 (W3SVC) 和 HTTP 服務都必須正確運作。此外,網站的應用程式也必須有正常運作中的應用程式集區可供使用。如果其中有任一元件無法運作,網站將無法使用。

解決方式

新增或編輯站台繫結

確認站台的繫結已設定有效的連接埠和 IP 位址,且為此網站設定的 IP 位址和連接埠尚未用於其他站台或實體。一次只能將一個網站繫結至一個特定的 IP/連接埠配對。新增或編輯繫結之後,您可能必須重新啟動網站,在某些情況下也必須啟動 HTTP 服務。

新增或編輯站台繫結

若要新增或編輯站台繫結,請遵循以下步驟:

重新啟動站台

如有需要,請遵循以下步驟重新啟動站台:

您也可以使用以下連結來執行此操作:

停止網站

啟動網站

停止和重新啟動 HTTP 服務

在某些情況下,您可能也必須停止和重新啟動 HTTP 服務:

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WebSite
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.InternetInformationServices.6.2.WebSite.EventLogManualReset2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
無效的網站繫結
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.6.2.WebSite.InvalidBindings.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.WebSite" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.InternetInformationServices.6.2.WebSite.EventLogManualReset2StateMonitorType" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.6.2.WebSite.InvalidBindings.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
<OperationalState ID="ErrorEventRaised" MonitorTypeStateID="ErrorEventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<LogName>System</LogName>
<Expression>
<Or>
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(1029|1004|1172|1043|1174)$</Pattern>
</RegExExpression>
</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>
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(5043)$</Pattern>
</RegExExpression>
</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>
</Or>
</Expression>
</Configuration>
</UnitMonitor>