azure - 在 IIS 中使用 NetTcpRelayBinding 托管 WCF 服务 : host closes when called

标签 azure servicebus azureservicebus azure-servicebusrelay

我在 IIS 中使用 NetTcpRelayBinding 托管 WCF 服务时遇到问题。当我通过浏览 WSDL 激活服务时,它会将中继发布到 Azure 服务总线,但一旦我尝试调用它,服务主机就会关闭,中继也会消失。我在服务端看到的唯一异常(exception)是 SocketException: 远程服务器关闭连接。如果我在控制台主机中托管相同的服务,它就可以正常工作。

有什么想法吗?

最佳答案

确保您在 Windows 功能中启用了非 Http 激活。

关于azure - 在 IIS 中使用 NetTcpRelayBinding 托管 WCF 服务 : host closes when called,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21091680/

相关文章:

sql-server - SSMS "Windows logins are not supported in this version of SQL Server"

azure - 如何在未托管在 Azure 上的 Web 应用程序中调用 Azure 函数

c# - 如何从 Windows 服务总线订阅获取未处理的消息计数?

c# - 如何在 MassTransit 中配置多个消息消费者?

asp.net-mvc-3 - Azure 服务总线 - 双向通信性能挑战

azure - 了解如何在 Azure 中提供角色中的应用程序

azure - 在 Azure CLI 中获取 SAS token

c# - 在什么情况下应该使用 ESB 来管理传入的 WCF 服务请求?H

azure - 如何使用 Azure 服务总线 HTTP API 对消息设置死信

Azure函数: Service Bus input binding (not trigger)