如何解决在 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 举报,一经查实,本站将立刻删除。