IBM.WMQ.MQQueueManager的类型初始值设定项引发异常
大家好!我用.NET连接IBMMQ.在本地测试成功.但放到服务器上就报以下错误
在网上查了下.我的BIN目录下已经放了amqmdnet.dll,amqmdxcs.dll两个文件了
是不是还有其它原因呢.
-------------
事件 ID ( 1334 )的描述(在资源( ASP.NET 2.0.50727.0 )中)无法找到。本地计算机可能没有必要的注册信息或消息 DLL 文件来从远程计算机显示消息。您可能可以使用 /AUXSOURCE= 标识来检索词描述;查看帮助和支持以了解详细信息。下列信息是事件的一部分: An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/320111219/Root
Process ID: 3528
Exception: System.TypeInitializationException
Message: “IBM.WMQ.MQQueueManager”的类型初始值设定项引发异常。
StackTrace: 在 IBM.WMQ.MQQueueManager.Finalize()
InnerException: System.TypeInitializationException
Message: “IBM.WMQ.CommonServices”的类型初始值设定项引发异常。
StackTrace: 在 IBM.WMQ.CommonServices.TraceEnabled()
在 IBM.WMQ.MQBase..ctor()
在 IBM.WMQ.Nmqi.NmqiEnvironment..ctor(NmqiPropertyHandler nmqiPropertyHandler)
在 IBM.WMQ.Nmqi.NmqiFactory.GetInstance(NmqiPropertyHandler properties)
在 IBM.WMQ.MQQueueManager..cctor()
InnerException: System.NullReferenceException
Message: 未将对象引用设置到对象的实例。
StackTrace: 在 IBM.WMQ.CommonServices..cctor().