交易觸發程序的規則評估或執行作業失敗。

Microsoft.MSMQ.6.3.Rule.Alert.Event2210 (Rule)

Knowledge Base article:

摘要

交易觸發程序的規則評估或執行作業失敗。

原因

訊息佇列觸發程序規則的引動過程可能會因為多種原因而失敗。此錯誤可能是由下列其中一項狀況所造成:

若要執行這些程序,您必須具備 Administrators 的成員資格,或者必須已被委派適當的權限。

規則的條件或動作參數無效

判斷規則的條件或動作參數的有效性:

規則所叫用的 COM 物件未正確註冊

判斷 COM 物件是否已正確註冊:

找不到規則中指定的可執行檔或其沒有作用

判斷可執行檔是否存在且有作用:

如需有關建立觸發程序規則的詳細資訊,請參閱「建立規則並將其附加到觸發程序中」( http://go.microsoft.com/fwlink/?LinkId=104059)。

解決方式

設定規則或觸發程序

規則條件或觸發程序必須正確設定。如果您不清楚所需的規則或觸發程序設定,請連絡您的解決方案架構師。

若要執行此程序,您必須具備 Administrators 的成員資格,或者必須已被委派適當的權限。

確認並變更規則與觸發程序:

註冊 COM+ 物件

規則所叫用的 COM+ 物件未正確註冊。若要再次註冊物件,您可使用命令列公用程式 regsvr32.exe。如需有關使用 regsvr32 的詳細資訊,請參閱 Microsoft 知識庫中的文章 249873 ( http://go.microsoft.com/fwlink/?LinkId=107513)。

若要執行此程序,您必須具備 Administrators 的成員資格,或者必須已被委派適當的權限。

註冊 COM+ 物件:

刪除並重新建立規則

找不到規則中指定的可執行檔或其沒有作用。若要解決此問題,請嘗試刪除並重新建立指定的規則。

若要執行此程序,您必須具備 Administrators 的成員資格,或者必須已被委派適當的權限。

刪除並重新建立指定的規則:

如需有關建立觸發程序規則的詳細資訊,請參閱「建立規則並將其附加到觸發程序中」( http://go.microsoft.com/fwlink/?LinkId=104059)。

其他

如需詳細資訊,請參閱事件識別碼 2210 ( http://technet.microsoft.com/en-us/library/dd337483(WS.10).aspx)

Element properties:

TargetMicrosoft.MSMQ.6.3.Triggers
CategoryAvailabilityHealth
EnabledFalse
Event_ID2210
Event Source$Target/Host/Property[Type="Microsoft.MSMQ.6.3.ServerRole"]/ServiceName$
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
交易觸發程序的規則評估或執行作業失敗。
事件描述:{0}
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.MSMQ.6.3.Rule.Alert.Event2210" Enabled="false" Target="Microsoft.MSMQ.6.3.Triggers" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>AvailabilityHealth</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">2210</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Host/Property[Type="Microsoft.MSMQ.6.3.ServerRole"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertName/>
<AlertDescription/>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.MSMQ.6.3.Rule.Alert.Event2210.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
</Suppression>
<Custom1/>
<Custom2/>
<Custom3/>
<Custom4/>
<Custom5/>
<Custom6/>
<Custom7/>
<Custom8/>
<Custom9/>
<Custom10/>
</WriteAction>
</WriteActions>
</Rule>