title: How to setup WCF Net.Tcp
body: <p>I'm trying to setup a wcf service to use net.tcp over IIS 7. </p>
  
  <p>Here is the error I get:</p>
  
  <blockquote>
    <p>There was no endpoint listening at
    net.tcp://127.0.0.1:8000/ListingService
    that could accept the message. This is
    often caused by an incorrect address
    or SOAP action. See InnerException, if
    present, for more details.</p>
  </blockquote>
  
  <p>Here is the code I call from the client:</p>
  
  <pre><code>using (var client = new ListingServiceClient("NetTcpBinding"))
  {
     client.Test();
     client.Close();
  }
  </code></pre>
  
  <p>Here is my services web.config - <a href="http://pastebin.com/3S8BZbup" rel="nofollow">http://pastebin.com/3S8BZbup</a></p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding portSharingEnabled="true"&gt;
            &lt;security mode="None" /&gt;
          &lt;/binding&gt;
        &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="default"&gt;
            &lt;serviceMetadata httpGetEnabled="true"/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt;
            &lt;!--throttle service--&gt;
            &lt;serviceThrottling
              maxConcurrentCalls="10000"
              maxConcurrentSessions="10000" 
              maxConcurrentInstances="10000" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="default" name="Housters.Services.ListingService"&gt;
          &lt;endpoint name="TcpEndpoint"
                    address="net.tcp://127.0.0.1:8000/ListingService"
                    binding="netTcpBinding"
                    contract="Housters.Services.IListingService" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt;
    &lt;/system.serviceModel&gt;
    &lt;system.webServer&gt;
        &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
    &lt;/system.webServer&gt;
  </code></pre>
  
  <p>And here is my client app.config - <a href="http://pastebin.com/YpiAhh46" rel="nofollow">http://pastebin.com/YpiAhh46</a></p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding name="NetTcpBinding"&gt;
            &lt;security mode="None"/&gt;
          &lt;/binding&gt;
        &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint
                address="net.tcp://127.0.0.1:8000/ListingService"
                binding="netTcpBinding" bindingConfiguration="NetTcpBinding"
                contract="ListingServiceProxy.IListingService" name="NetTcpBinding" /&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Any ideas?</p>