在 IIS 10 托管的 .net 应用程序中运行时出现 Apache.NMS.XML 错误理由:2381

问题描述

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

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

以下是由于 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

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)