MQSeries 配接器的已知問題
本節包含可幫助您避免錯誤的資訊。
已知問題
試圖傳送或接收訊息時,發生拒絕存取的錯誤
問題
當您使用 MQSeries 配接器傳送訊息到 MQSeries 伺服器或接收來自 MQSeries 伺服器的訊息時,事件檢視器中的應用程式記錄檔會記錄類似下列的錯誤訊息:
The adapter "MQSeries" raised an error message. Details "The adapter has encountered an 'Access Denied' error while attempting to contact the COM+ object on the MQSeries server. Ensure the BizTalk account is added to the Role on the MQSAgent COM+ application."
The adapter failed to transmit message going to send port "MQS://servername/queuename". It will be retransmitted after the retry interval specified for this Send Port. Details: "The adapter has encountered an 'Access Denied' error while attempting to contact the COM+ object on the MQSeries server. Ensure the BizTalk account is added to the Role on the MQSAgent COM+ application."
注意
在此錯誤訊息中, servername 是伺服器的名稱, 而 queuename 是佇列的名稱。
此外,當您嘗試建立設定為使用 BizTalk Adapter for MQSeries 的接收位置或傳送埠時,可能會在事件檢視器中收到下列警告訊息:
The adapter "MQSeries" raised an error message. Details "The adapter has encountered an 'Access Denied' error while attempting to contact the COM+ object on the MQSeries server. Ensure the BizTalk account is added to the Role on the MQSAgent COM+ application."
原因
如果有下列一或多個條件成立,即可能發生此問題:
MQSeries 配接器的主控件帳戶沒有 MQSeries 伺服器上 MQSAgent COM+ 應用程式的必要權限。
在 Windows 伺服器上,MQSeries 介面卡的主機帳戶不是 MQSeries 伺服器上分散式 COM 使用者群組的成員。
解決方案
若要解決此問題,請使用下列方法。 如果其中一個方法無法解決問題,請嘗試使用下一個方法。
方法 1:在 Microsoft Server 上啟用網路 COM+ 存取
在 Microsoft Server 上啟用網路 COM+ 存取。 如需詳細資訊,請移至 啟用 COM+ 網路存取。
方法 2:設定 MSDTC 設定
請遵循設定 適當的 MSDTC 安全性設定選項 中的步驟,針對 MSDTC 的問題進行疑難排解,以設定 MSDTC 設定。
方法 3:確認主控件帳戶已新增至 MQSAgent COM+ 應用程式中的角色
確認 MQSeries 配接器的主控件帳戶已新增至 MQSeries 伺服器的 MQSAgent COM+ 應用程式中建立的角色。 您可以在「元件服務」管理主控台介面中進行確認。
方法 4:確認 MQSeries 配接器的主控件帳戶是分散式 COM 使用者群組的成員
在 Windows Server 上,檢查 MQSeries 配接器的主機帳戶群組成員資格。 請確定帳戶是 MQSeries 伺服器上已安裝 MQSAgent COM+ 應用程式之 分散式 COM 使用者 群組的成員。
如需 DCOM 安全性增強功能的詳細資訊,請參閱 DCOM 安全性增強功能。