title: WCF Service Library with NetTcpBinding
body: <p>I'm having a tough time with NetTcpBinding.</p>
  
  <p>When I run my WCFservice,I get this:</p>
  
  <pre><code>System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
     at System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses)
     at System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress)
     at System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection)
     at System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, String configurationName)
     at System.ServiceModel.ServiceHostBase.ApplyConfiguration()
     at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses)
     at System.ServiceModel.ServiceHost.InitializeDescription(Type serviceType, UriSchemeKeyedCollection baseAddresses)
     at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
     at Microsoft.Tools.SvcHost.ServiceHostHelper.CreateServiceHost(Type type, ServiceKind kind)
     at Microsoft.Tools.SvcHost.ServiceHostHelper.OpenService(ServiceInfo info)
  </code></pre>
  
  <p>I'm getting this when I run the application by default using WCFSvcHost.
  There's no extra code.Just the default code of any new wcf service.
  All I wanted to do was change the binding to tcp.</p>
  
  <p>How do I solve this problem?</p>
  
  <p>Edit: Here's my WCF's App.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" /&gt;
    &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding name="tcpBinding" transferMode="Streamed" portSharingEnabled="false"&gt;
            &lt;reliableSession enabled="true" /&gt;
            &lt;security mode="None"&gt;
              &lt;transport clientCredentialType="None" protectionLevel="None" /&gt;
              &lt;message clientCredentialType="None" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="WcfServiceLibrary1.Service1Behavior"
          name="WcfServiceLibrary1.Service1"&gt;
          &lt;endpoint address="" binding="wsHttpBinding" contract="WcfServiceLibrary1.IService1"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
          &lt;endpoint address="Service" binding="netTcpBinding" bindingConfiguration="tcpBinding"
            name="testTcp" contract="WcfServiceLibrary1.IService1" /&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="WcfServiceLibrary1.Service1Behavior"&gt;
            &lt;serviceMetadata httpGetEnabled="True"/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="False" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>