WCF 错误 "Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding"
WCF error "Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding"
我正在尝试 运行 Windows Server 2012 R2 上的网络服务,但出现以下错误
Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
目前我尝试过的解决方案:
- Could not find a base address that matches scheme net.tcp(前两个答案)
我的web.config文件
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="Binding1" >
<security mode="Message">
<message clientCredentialType="Certificate"/>
</security>
</binding>
</netTcpBinding>
</bindings>
<services>
<service name="ServerName" behaviorConfiguration="ServerInternet" >
<endpoint address=""
binding="netTcpBinding"
bindingConfiguration="Binding1"
contract="Namespace.Interface"
bindingNamespace="http://www.mycompany.com/webservices"
/>
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8080/WebService/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServerInternet">
<!-- certificate infos here -->
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
高级设置:
功能 我在服务器上安装了:
池设置:
- 经典管道
- CLR.NET 4.0
- 本地服务身份
站点绑定
出现此错误的原因可能是什么?
问题是您没有在服务器管理器中启用 TCP 激活和 TCP 端口共享,这不会加起来,因为这是 IIS 中 net.tcp 所必需的。
我正在尝试 运行 Windows Server 2012 R2 上的网络服务,但出现以下错误
Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
目前我尝试过的解决方案:
- Could not find a base address that matches scheme net.tcp(前两个答案)
我的web.config文件
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="Binding1" >
<security mode="Message">
<message clientCredentialType="Certificate"/>
</security>
</binding>
</netTcpBinding>
</bindings>
<services>
<service name="ServerName" behaviorConfiguration="ServerInternet" >
<endpoint address=""
binding="netTcpBinding"
bindingConfiguration="Binding1"
contract="Namespace.Interface"
bindingNamespace="http://www.mycompany.com/webservices"
/>
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8080/WebService/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServerInternet">
<!-- certificate infos here -->
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
高级设置:
功能 我在服务器上安装了:
池设置:
- 经典管道
- CLR.NET 4.0
- 本地服务身份
站点绑定
出现此错误的原因可能是什么?
问题是您没有在服务器管理器中启用 TCP 激活和 TCP 端口共享,这不会加起来,因为这是 IIS 中 net.tcp 所必需的。