Symptoms
Consider the following scenario:
-
You have Microsoft SharePoint Server 2010 Service Pack 2 (SP2) installed in a Windows Server 2012 environment.
-
You create a custom web service by using non-http bindings to SharePoint Server 2010 SP2.
-
You add the custom web service and then try to access it in SharePoint Server 2010 SP2.
In this scenario, you receive the following error message:
Exception: System.InvalidOperationException: The protocol 'net.tcp' does not have an implementation of HostedTransportConfiguration type registered.
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)Cause
This issue occurs because the Microsoft .NET Framework 2.0 Web.config file in Windows Server 2012 is not updated to include the HostedTransportConfiguration TCP connection type.
Workaround
To work around this issue, click the following article number to view the article in the Microsoft Knowledge Base:
2803161 "'Net.tcp' does not have an implementation of HostedTransportConfiguration type registered" error message when you host .NET Framework 3.5 WCF service on Windows Server 2012 or Windows 8