因為針對規則選取的網頁接聽程式不正確,網頁發行規則失敗

Microsoft.Forefront.TMG.A_Web_publishing_rule_failed_because_the_Web_listener_selected_for_the_rule_is_not_valid.Rule (Rule)

若因為針對規則選取的網頁接聽程式不正確,網頁發行規則失敗,此規則會產生警示

Knowledge Base article:

摘要

網頁發行規則失敗。 事件的參數包含網頁發行規則的名稱。

原因

針對規則選取的網頁接聽程式無效。

解決方式

確認網頁接聽程式在這部電腦上指定有效的 IP 位址。 如需定義網頁接聽程式的詳細資訊,請參閱 TMG Server 說明。

Element properties:

TargetMicrosoft.Forefront.TMG.Publishing.ServerComponent
CategoryEventCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Forefront.TMG.Rule.AlertGenerate.DS Default
WA WriteAction Microsoft.Forefront.TMG.Rule.AlertGenerate.WA Default

Source Code:

<Rule ID="Microsoft.Forefront.TMG.A_Web_publishing_rule_failed_because_the_Web_listener_selected_for_the_rule_is_not_valid.Rule" Enabled="true" Target="Microsoft.Forefront.TMG.Publishing.ServerComponent" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Forefront.TMG.Rule.AlertGenerate.DS">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<EventsPattern>^(21216)$</EventsPattern>
<EventType>1</EventType>
<SourcePattern>Microsoft Forefront TMG Web Proxy</SourcePattern>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Forefront.TMG.Rule.AlertGenerate.WA">
<AlertMessageId>$MPElement[Name="Microsoft.Forefront.TMG.A_Web_publishing_rule_failed_because_the_Web_listener_selected_for_the_rule_is_not_valid.AlertMessage"]$</AlertMessageId>
<DomainName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/DomainDnsName$</DomainName>
<Priority>1</Priority>
<Severity>2</Severity>
</WriteAction>
</WriteActions>
</Rule>