gpt4 book ai didi

wcf - 不支持协议(protocol) 'net.tcp'

转载 作者:行者123 更新时间:2023-12-04 13:25:05 25 4
gpt4 key购买 nike

我的 WCFservice 给了我
“不支持协议(protocol)‘net.tcp’”...

<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="tcpBinding" transferMode="Streamed" portSharingEnabled="false">
<reliableSession enabled="true" />
<security mode="None">
<transport clientCredentialType="None" protectionLevel="None" />
<message clientCredentialType="None" />
</security>
</binding>
</netTcpBinding>
</bindings>
<services>
<service name="JMSysSplash.CommunicationServer.JMSysSplashServer" behaviorConfiguration="Service1Behavior">
<endpoint address="" binding="wsHttpBinding" contract="JMSysSplash.CommunicationClient.IJMSysSplashServer">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<endpoint address="net.tcp://localhost:8888/JMSysSplashServer" binding="netTcpBinding" bindingConfiguration="tcpBinding" contract="JMSysSplash.CommunicationClient.IJMSysSplashServer"/>
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/JMSysSplashServer.svc/"/>
<add baseAddress="net.tcp://localhost:8888/JMSysSplashServer"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Service1Behavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>

最佳答案

请检查“.NET 功能 -> WCF 激活 -> 非 HTTP 激活”功能是否已安装(“服务器管理器 -> 添加/删除功能”)。我假设您在 IIS 中托管服务。在这种情况下,还请检查网站是否允许 net.tcp 协议(protocol)(网站 -> 高级设置 -> 启用的协议(protocol))以及“Net.Tcp Listner Adapter”windows 服务是否正在运行。

关于wcf - 不支持协议(protocol) 'net.tcp',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2206451/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com