1

我最近将我们的应用程序迁移到了运行 IIS 10(以前的 IIS 7.5 版本)的新服务器上。现在我的 api Web 应用程序无法通过 apache NMS.XML 包连接到我们的 IBM MQ 队列管理器(CompCode:2,Reason:2381,IBM.XMS.XMSException:CWSMQ0006E)。

我尝试在控制台应用程序(相同的 .net 版本、服务器、域和用户)中运行代码,在这种情况下它运行良好。它仅在我们的 IIS 托管 Web 应用程序上失败。

以下是由于 Web 应用程序无法连接到队列管理器而导致的错误。

来自 MQ 客户端的错误:

Process(5432.6) User(service-account) Program(w3wp.exe)
                      Host(development-server) Installation(Installation1)
                      VRMF(7.5.0.3)
AMQ9647: I/O error on SSL key repository.

来自 Apache.NMS.XML 包的错误:

Connect: Failed to establish connection to JMS destination
 Apache.NMS.NMSException: CWSMQ0006E: An exception was received during the call to the method ConnectionFactory.CreateConnection: CompCode: 2, Reason: 2381.
During execution of the specified method an exception was thrown by another component.
See the linked exception for more information. ---> IBM.XMS.XMSException: CWSMQ0006E: An exception was received during the call to the method ConnectionFactory.CreateConnection: CompCode: 2, Reason: 2381.
During execution of the specified method an exception was thrown by another component.
See the linked exception for more information.
   at IBM.XMS.Client.WMQ.Factories.WmqConnectionFactory.CreateProviderConnection(XmsPropertyContext connectionProps)
   at IBM.XMS.Client.Impl.XmsConnectionFactoryImpl.CreateConnection(String userID, String password)
   at IBM.XMS.Client.Impl.XmsConnectionFactoryImpl.CreateConnection()
   at Apache.NMS.XMS.ConnectionFactory.CreateConnection() in c:\dev\wec-integraton\Messaging\XMS\apache-src\src\main\csharp\ConnectionFactory.cs:line 1418
   --- End of inner exception stack trace ---
   at Apache.NMS.XMS.Util.ExceptionUtil.WrapAndThrowNMSException(Exception ex) in c:\dev\wec-integraton\Messaging\XMS\apache-src\src\main\csharp\Util\ExceptionUtil.cs:line 139
   at Apache.NMS.XMS.ConnectionFactory.CreateConnection() in c:\dev\wec-integraton\Messaging\XMS\apache-src\src\main\csharp\ConnectionFactory.cs:line 1424
4

0 回答 0