Search code examples
c#wcfwindows-server-2012

net.tcp no longer works in server 2012


I cannot get server 2012 iis to host net.tcp.

In server 2008R2/VS2012 there is no issues

In server2012/VS2012 when hitting the wdsl I am first receiving "The protocol 'net.tcp' does not have an implementation of HostedTransportConfiguration type registered.", then if I hit refresh I get "An item with the same key has already been added."

The error from the TraceViewer if "service is unable to open its IChannelListener"

But I have set the Bindings on the default website( had to use the command line because it throws an exception if you edit net.tcp in the grid, this is a known issue)

I have set the bindings at the application level to http,net.tcp, created a new AppPool with network service identity, and used findPrivateKey to give it permissions.

I created a new virt of Server 2008R2/VS2012 and had no issues with the above steps.

Edit Additional notes for server 2012
Add Roles and Features:
Verified the following are installed:
Web Sever - Application Development: All checked but CGI and ASP(classic)
.NET Framework 3.5 Features: All checked
Windows Process Activation Service: All checked
IIS: Default Web Site: bindings net.tcp 8081:

IIS: Default Web Site->Advanced Settings->enabled protocols: http,net.tcp
IIS: Default Web Site\Service->Advanced Settings->enabled protocols: http,net.tcp

Is there anything special to do for Server2012?


Solution

  • After a day of searching, finally found it. I guess it another known issue with server2012 & IIS8

    http://support.microsoft.com/kb/2803161