c# - 到 WCF 的 Azure 服务总线

标签 c# wcf azure

我在尝试运行连接到 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/

相关文章:

c# - x64 的 form_load 中忽略的异常

asp.net - 如何调用我的 WCF 服务构造函数?

azure - If/Else 是否包含在 Azure DevOps YAML 中用于动态设置构建配置?

azure - Docker 镜像未在 Web 浏览器 Azure Kubernetes 中显示

c# - 编辑绑定(bind)到同一绑定(bind)源的 TextEdits 中的 GridControl 中选择的多行

c# truthy 和 falsy 值

c# - ASP NET Core 返回文件使用 IE11 失败?内容长度不匹配

wcf - WCF 测试客户端中的 https 使用 basicHttpBinding 绑定(bind)

c# - EncryptedXml DecryptDocument 方法抛出 "Bad Data"异常

azure - ServiceName 和 Name 的区别?