【问题标题】:Configure netTcpBinding [closed]配置 netTcpBinding [关闭]
【发布时间】:2020-11-02 23:23:42
【问题描述】:

有一个云服务项目。它使用 netTcpBinding。启动时出错: 找不到与具有绑定 NetTcpBinding 的端点的方案 net.tcp 匹配的基地址。注册的基地址方案是 [http]。 虽然 def 文件指定了这个端点:

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="TestCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2015-04.2.6">
  <WebRole name="TestService" vmsize="Standard_D1_v2">
    <Sites>
      <Site name="Web">
        <Bindings>
          <Binding name="Endpoint1" endpointName="Endpoint1" />
        </Bindings>
      </Site>
    </Sites>
    <ConfigurationSettings>
      <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" />
    </ConfigurationSettings>
    <Endpoints>
      <InputEndpoint name="Endpoint1" protocol="http" port="80" />
      <InputEndpoint name="Endpoint2" protocol="tcp" port="63492" />
    </Endpoints>
  </WebRole>
</ServiceDefinition>

如何为 netTcpBinding 正确配置 Cloudservice?

【问题讨论】:

    标签: wcf nettcpbinding


    【解决方案1】:

    您需要在云服务服务器上打开net.tcp端口。

    在您的云服务上打开 IIS。点击绑定,进入添加绑定界面。

    选择 net.tcp 类型。

    最后,为它指定端口号。

    【讨论】:

    • 云服务中只有http和https...
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-11-22
    • 2020-10-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-13
    • 2012-10-22
    相关资源
    最近更新 更多