Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The protocol 'net.tcp' is not supported

My WCFservice is giving me "The protocol 'net.tcp' is not supported"...

<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>
like image 406
Debashis Kumar Avatar asked Feb 05 '10 10:02

Debashis Kumar


1 Answers

Please check that ".NET Features -> WCF Activation -> Non-HTTP activation" feature is installed("server manager -> add/remove features"). And I assume, that you host the service in IIS. In this case, please also check if net.tcp protocol is allowed for a web site(Web Site -> Advanced Settings -> Enabled Protocols) and "Net.Tcp Listner Adapter" windows service is running.

like image 85
Daniil Novikov Avatar answered Nov 10 '22 21:11

Daniil Novikov