我的WCFservice提示我“协议'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>发布于 2011-08-15 11:50:47
请检查是否安装了".NET feature -> WCF Activation -> Non-HTTP activation“功能(”server manager -> add/remove feature“)。我假设您在IIS中托管该服务。在这种情况下,还请检查网站是否允许net.tcp协议(网站->高级设置->启用的协议)以及"Net.Tcp侦听器适配器“windows服务是否正在运行。
发布于 2013-02-28 03:04:40
你没有提到谁是主持人。如果您使用IISExpress托管,请注意它不支持net.tcp。来自http://www.iis.net/learn/extensions/introduction-to-iis-express/iis-express-faq
问:是否支持WCF应用程序?
答:是的,IIS Express支持WCF应用程序。如上所述,WCF仅支持HTTP或HTTPS。不支持MSMQ和net.tcp上的WCF。
发布于 2015-04-29 15:35:15
我知道这是旧的和答案,但我遇到了一个类似的问题,但不同的解决方案。
尽管Daniil是正确的,但错过该安装将导致相同的错误弹出-我的问题有点不同,并将此答案写下来以供他人受益。
IIS中的Issue#1在应用程序所在的网站中,右键单击并单击“编辑绑定”。
确保net.tcp作为绑定之一存在,并且绑定信息设置为"808:*“。
Issue#2在IIS的应用程序节点中,转到其“高级设置”并检查net.tcp是否在启用的协议列表中。例如,如果您需要同时支持后两种协议,则可以使用"http,net.tcp“。
希望这能有所帮助。
https://stackoverflow.com/questions/2206451
复制相似问题