title: WCF error "Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding"
body: <p>I'm trying to run a webservice on a Windows Server 2012 R2, but I get the following error</p>
  
  <blockquote>
    <p>Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].</p>
  </blockquote>
  
  <p><strong>The solutions I have tried so far :</strong></p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/1793119/could-not-find-a-base-address-that-matches-scheme-net-tcp">Could not find a base address that matches scheme net.tcp</a> (the first two answers)</li>
  </ul>
  
  <p><strong>My web.config file</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding name="Binding1" &gt;
            &lt;security mode="Message"&gt;
              &lt;message clientCredentialType="Certificate"/&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;services&gt;
        &lt;service name="ServerName" behaviorConfiguration="ServerInternet" &gt;
          &lt;endpoint address=""
              binding="netTcpBinding"
              bindingConfiguration="Binding1"
              contract="Namespace.Interface"
              bindingNamespace="http://www.mycompany.com/webservices"
          /&gt;
  
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="net.tcp://localhost:8080/WebService/" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="ServerInternet"&gt;
            &lt;!-- certificate infos here --&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>The advanced settings</strong> :</p>
  
  <p><a href="https://i.stack.imgur.com/YkyaQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YkyaQ.png" alt="Advanced settings, net.tcp is enabled"></a></p>
  
  <p><strong>The functionalities</strong> I have installed on the server :</p>
  
  <p><a href="https://i.stack.imgur.com/uWRFr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uWRFr.png" alt="Functionalities"></a></p>
  
  <p><strong>Pool settings</strong> :</p>
  
  <ul>
  <li>Classic pipeline</li>
  <li>CLR .NET 4.0</li>
  <li>LocalService Identity</li>
  </ul>
  
  <p><strong>The site bindings</strong></p>
  
  <p><a href="https://i.stack.imgur.com/h0BdW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h0BdW.png" alt="enter image description here"></a></p>
  
  <p>What could be the reasons of this error?</p>