このセクションには、エラーの回避に役立つ情報が含まれています。
問題を把握する
メッセージを送受信しようとしたときにアクセス拒否エラーが発生する
問題
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."
注
このエラー メッセージでは、 サーバー名はサーバー の名前で、 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."
原因
次の条件のうち1つ以上が当てはまる場合、この問題が発生することがあります。
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+ アプリケーションで作成されたロールに追加されていることを確認します。 これは、Component Services 管理コンソール インターフェイスで確認できます。
方法 4: MQSeries アダプターのホスト・アカウントが分散 COM ユーザー・グループのメンバーであることを確認する
Windows Server で、MQSeries アダプターのホスト アカウントのグループ メンバーシップを調べます。 アカウントが MQSAgent COM+ アプリケーションがインストールされている MQSeries サーバー上の 分散 COM ユーザー ・グループのメンバーであることを確認します。
DCOM のセキュリティ強化の詳細については、「 DCOM セキュリティの強化」を参照してください。