我在尝试运行连接到 Azure 服务总线的 WCF REST 服务时遇到问题。我的 web.config 包含以下内容:
<system.serviceModel>
<services>
<service name="helloSB.SomeService">
<endpoint contract="helloSB.ISomeService"
binding="webHttpRelayBinding"
address = "" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:7200/mySB/helloSB.SomeService/" />
</baseAddresses>
</host>
每当我尝试向 WCF 发送消息时,我都会收到: 由于编译过程中出现异常,服务/mySB/SomeService.svc无法激活。异常(exception)情况是:无法通过 TCP (9351, 9352) 或 HTTP (80,443) 到达本地主机。
为什么我不能使用非标准端口?
最佳答案
看起来这些与某些端口问题有关。以下链接提供了有关故障排除步骤的更多详细信息。 http://social.technet.microsoft.com/wiki/contents/articles/2055.troubleshooting-connectivity-issues-in-the-azure-appfabric-service-bus.aspx
关于c# - 到 WCF 的 Azure 服务总线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33743694/