【问题标题】:Could not find a base address that matches scheme net.tcp for the endpoint with binding MetadataExchangeTcpBinding找不到与绑定 MetadataExchangeTcpBinding 的端点的方案 net.tcp 匹配的基地址
【发布时间】:2015-07-21 17:20:57
【问题描述】:

我的 Web.Config 在这里:

 <system.serviceModel>
<behaviors>
  <serviceBehaviors>
    <behavior name="MyServiceTypeBehaviors" >
      <serviceMetadata httpGetEnabled="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<bindings>
  <basicHttpBinding>
    <binding name="basicHttpBindingConfig"/>
  </basicHttpBinding>
  <netTcpBinding>
    <binding name="netTcpBindingConfig"/>
  </netTcpBinding>
</bindings>
<services>
  <service name="testService.RaptorAPI">
    <endpoint address="mex" binding="mexTcpBinding" contract="testService.IRaptorAPI" listenUriMode="Explicit"/>
    <endpoint address="" binding="netTcpBinding" contract="testService.IRaptorAPI" bindingConfiguration="netTcpBindingConfig">
      <identity>
        <dns value="localhost" />
      </identity>
    </endpoint>
    <host>
      <baseAddresses>
        <add baseAddress="net.tcp://ccs-labs.com:802"/>
        <add baseAddress="http://ccs-labs.com:801"/>
      </baseAddresses>
    </host>
  </service>
</services>

更新 1 net.tcp 绑定在 IIS 上,相应的服务正在运行。


有人能找到并更正错误“找不到与绑定 MetadataExchangeTcpBinding 的端点的方案 net.tcp 匹配的基地址。注册的基地址方案是 [http]。

【问题讨论】:

    标签: .net wcf wcf-binding


    【解决方案1】:

    请尝试这些步骤

    1. 转到服务器管理器 > 功能 > 添加功能。此处启用 WCF 激活 功能。 .NET Framework 的版本可能因 Windows 版本而异。

    1. IIS 中找到您的 网站,导航到高级设置并将启用的协议更新为“http,net.tcp”。

    1. IIS 中找到您的 网站,检查您的 net.tcp 端口绑定。

    1. 确保您没有使用 IIS Express,因为 Express 版本不支持非 HTTP 协议。

    【讨论】:

      【解决方案2】:

      您的 TCP 似乎未启用。下面的帖子可能会帮助您找到解决方案。 Enabling net.tcp in IIS7

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-06-02
        • 2010-12-20
        • 1970-01-01
        • 2017-08-13
        • 2016-04-03
        • 2011-10-14
        • 2023-03-31
        • 1970-01-01
        相关资源
        最近更新 更多