Last post Aug 26, 2013 07:25 AM by Illeris
Aug 21, 2013 05:18 AM|.net_junkie|LINK
I am using net.tcp protocol as a binding to my WCF service but when i run the project i am getting this error
Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
<compilation debug="true" targetFramework="4.0" />
<service behaviorConfiguration="servicebehave" name="NETTCP.Service1">
<endpoint address="" binding="netTcpBinding"
bindingConfiguration="" name="nettcp" contract="NETTCP.IService1" />
<endpoint address="netTcpMex" binding="mexTcpBinding" bindingConfiguration=""
name="netTcpMex" contract="IMetadataExchange" />
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
Aug 21, 2013 05:26 AM|DarrellNorton|LINK
Two things. First you are using the same port for http and net.tcp. You can't do that. Change the base address for net.tcp to something else, like net.tcp://localhost:8182
Second, are you using IIS and WAS or self-hosting? If using IIS and WAS, there are some manual configuration steps. See this article for details: http://msdn.microsoft.com/en-us/magazine/cc163357.aspx
Aug 21, 2013 05:39 AM|.net_junkie|LINK
I am going to use IIS for this and i am getting the above error when i try to browse the .svc file,and i have changed the port number as you said still i am getting the same error :\
Aug 21, 2013 11:23 PM|Amy Peng - MSFT|LINK
If we want to host nettcpbinding in IIS, please try to refer to the following steps:
For more information, please try to refer to following article:
#Hosting WCF service with netTcpBinding or netNamedPipeBinding in IIS:
And if you still can not solved your problem, please try to enable the
/> to get more error information.
Also enable the wcf tracing will help to find a cause.
#How to enable the wcf tracing:
Aug 26, 2013 12:25 AM|.net_junkie|LINK
I am getting this error when i browse my service in my application not in IIS.
Aug 26, 2013 07:25 AM|Illeris|LINK
what do you mean "IIS" => Internet explorer? If so : this is using the Mex endpoint, not the service endpoint the application is using.