Unable to configure WCF service for net.tcp in IIS hosting multiple sites
Trying to set up second web site in IIS 7, most/all of the mirrored services function except ones configured for net.tcp. Trying to access the .svc url, I receive the following error:
Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
IIS binding configuration:
Trying to follow answers found on Stack Overflow, none seem to work. Content of the service's web.config:
<system.serviceModel> <services> <service name="ServiceName"> <endpoint address="basic" binding="basicHttpBinding" bindingConfiguration="" name="basic" contract="ServiceName.IService" /> <endpoint address="nettcp" binding="netTcpBinding" bindingConfiguration="" name="netTCP" contract="ServiceName.IService" /> <host> <baseAddresses> <add baseAddress="http://staging.localhost/ServiceName" /> <add baseAddress="net.tcp://localhost:8033/ServiceName" /> </baseAddresses> </host> </service> </services>
Is there a trick to the net.tcp bindings? What is correct configuration needed in the web.config?
A screenshot is worth a 1,000 words sometimes. In IIS manager, right-click on the application "ServiceName" and select Manage Application->Advanced Settings. In the advanced settings dialog box, check to see if you've added net.tcp to the Enabled Protocols: