首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不支持协议'net.tcp‘

不支持协议'net.tcp‘
EN

Stack Overflow用户
提问于 2010-02-05 18:13:42
回答 4查看 16.2K关注 0票数 6

我的WCFservice提示我“协议'net.tcp‘不受支持”...

代码语言:javascript
复制
<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>
EN

回答 4

Stack Overflow用户

发布于 2011-08-15 11:50:47

请检查是否安装了".NET feature -> WCF Activation -> Non-HTTP activation“功能(”server manager -> add/remove feature“)。我假设您在IIS中托管该服务。在这种情况下,还请检查网站是否允许net.tcp协议(网站->高级设置->启用的协议)以及"Net.Tcp侦听器适配器“windows服务是否正在运行。

票数 12
EN

Stack Overflow用户

发布于 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。

票数 2
EN

Stack Overflow用户

发布于 2015-04-29 15:35:15

我知道这是旧的和答案,但我遇到了一个类似的问题,但不同的解决方案。

尽管Daniil是正确的,但错过该安装将导致相同的错误弹出-我的问题有点不同,并将此答案写下来以供他人受益。

IIS中的Issue#1在应用程序所在的网站中,右键单击并单击“编辑绑定”。

确保net.tcp作为绑定之一存在,并且绑定信息设置为"808:*“。

Issue#2在IIS的应用程序节点中,转到其“高级设置”并检查net.tcp是否在启用的协议列表中。例如,如果您需要同时支持后两种协议,则可以使用"http,net.tcp“。

希望这能有所帮助。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2206451

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档