Step 2: Add tcpBinding and mexTcpBinding.
Step 3: Enable net.tcp protocol for the deployed service in Advanced Settings
section.
Step 4: Browse the svc and test the address for tcpBinding using WCFTestClient
(getting error with WcfStorm for tcp)
Step 2:
Code Snippet
- <?xml version="1.0"?>
- <configuration>
- <system.web>
- <compilation debug="true" targetFramework="4.0" />
- </system.web>
- <system.serviceModel>
- <services>
- <service name="ConfirmWCFTCP.Service1" behaviorConfiguration="MyServicebehavior">
- <endpoint address="" binding="netTcpBinding" contract="ConfirmWCFTCP.IService1"/>
- <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/>
- </service>
- </services>
- <behaviors>
- <serviceBehaviors>
- <behavior name="MyServicebehavior">
- <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
- <serviceMetadata httpGetEnabled="true"/>
- <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
- <serviceDebug includeExceptionDetailInFaults="false"/>
- </behavior>
- </serviceBehaviors>
- </behaviors>
- <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
- </system.serviceModel>
- <system.webServer>
- <modules runAllManagedModulesForAllRequests="true"/>
- </system.webServer>
- </configuration>
Step 3: