A Web publishing rule failed because the Web listener selected for the rule is not valid

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

This Rule generates alerts when A Web publishing rule failed because the Web listener selected for the rule is not valid

Knowledge Base article:

Summary

A Web publishing rule failed. The parameter of the event contains the name of the Web publishing rule.

Causes

The Web listener selected for the rule is not valid.

Resolutions

Verify that the Web listener specifies a valid IP address on this computer. For more information about defining Web listeners, see TMG Server Help.

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>