1

私は .net 経由で 7x (7.5 mq クライアント amqmdnet.dll) を使用し、 and を使用MQPutMessageOptionsしてMQGetMessageOptionsいますが、このコードは mq 7.5 ibm クライアントで正常に動作しますが、

IBM リンク

7x mq クライアントは 6x と下位互換性があるとのことですが、接続しようとすると、このエラーが発生します (Windows 7 64 ビット OS を使用しています)。

System.TypeInitializationException: The type initializer for 'IBM.WMQ.MQQueueManager' threw an exception. ---> System.TypeInitializationException: The type initializer for 'IBM.WMQ.CommonServices' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at IBM.WMQ.CommonServices..cctor()
   --- End of inner exception stack trace ---
   at IBM.WMQ.CommonServices.TraceEnabled()
   at IBM.WMQ.MQBase..ctor()
   at IBM.WMQ.Nmqi.NmqiEnvironment..ctor(NmqiPropertyHandler nmqiPropertyHandler)
   at IBM.WMQ.Nmqi.NmqiFactory.GetInstance(NmqiPropertyHandler properties)
   at IBM.WMQ.MQQueueManager..cctor()

上記のエラーをスローする行は次のとおりです。

MQQueueManager  mqQMgr = new MQQueueManager("My queue manager" , "my channel name" ,"my connection name");

PS: 同じパラメーターを持つ上記の行は 7.5 mq client で正常に動作しますが、6x の場合は失敗します (例: 6.0.2.5 mq クライアントがインストールされている場合、「標準的な」インストール (6x mq クライアントのフル インストール) を実行しました)。

6.0.2.5 で動作させる方法はありますか?

4

1 に答える 1