title: The message could not be dispatched because the service at the endpoint address net.tcp://localhost/ is unavailable for the protocol of the address
body: <p>I am developing a WCF service in Visual Studio 2012. The following is the web.config file:</p>
  
  <pre><code>  &lt;system.serviceModel&gt;
      &lt;client&gt;
        &lt;endpoint address="net.tcp://localhost/BlueYonder/Booking" binding="netTcpBinding" contract="BlueYonder.BookingService.Contracts.IBookingService" name="BookingTcp"&gt;
          &lt;identity&gt;
            &lt;certificateReference storeLocation="LocalMachine" storeName="TrustedPeople" x509FindType="FindBySubjectName" findValue="Server"/&gt;
          &lt;/identity&gt;
        &lt;/endpoint&gt;
      &lt;/client&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding&gt;
            &lt;security mode="Message"&gt;
              &lt;message clientCredentialType="Certificate"/&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;behaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior&gt;
            &lt;clientCredentials&gt;
              &lt;serviceCertificate&gt;
                &lt;authentication revocationMode="NoCheck" /&gt;
              &lt;/serviceCertificate&gt;
              &lt;clientCertificate storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName" findValue="Client"/&gt;
            &lt;/clientCredentials&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>I have also enabled net.tcp binding in IIS. In addition, I have check the required service (listeners) are running.</p>
  
  <p>However, I am getting the following error message:</p>
  
  <p><em><strong>EndPointNotFoundException</em></strong></p>
  
  <p><strong>There was no endpoint listening at net.tcp://localhost/BlueYonder/Booking that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.</strong></p>