I have a WCF service hosted on Windows Azure, and I recently changed its contract for a Duplex contract (to support a progress bar on the client). At first I used wsDualHttpBinding, which worked well on my local machine, but was not expected to work as soon as I deployed it.
Now I'm trying to configure the service to work with netTcpBinding, but I get the error message "The specified protocol is not valid. The tcp protocol for binding with the name" Endpoint1 "is not currently supported."
ServiceDefinition.csdef:
<Endpoints>
<InputEndpoint name="AlertsEndpoint" protocol="tcp" port="3030" />
</Endpoints>
Web.config:
<services>
<service name="AlertsService.AlertsService" behaviorConfiguration="AlertsServiceBehavior">
<endpoint address="" binding="netTcpBinding" bindingConfiguration="NetTcp" contract="AlertsService.IAlertsService" />
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="MexTcp" contract="IMetadataExchange" />
</service>
</services>
<bindings>
<netTcpBinding>
<binding name="NetTcp" />
</netTcpBinding>
<mexTcpBinding>
<binding name="MexTcp"/>
</mexTcpBinding>
</bindings>
source
share