title: "There is no compatible TransportManager found" error for net.tcp WCF service (mex endpoint) on IIS 7
body: <p>I've created service with the following config</p>
  
  <pre><code>&lt;system.serviceModel&gt;
  
  &lt;bindings&gt;
    &lt;netTcpBinding&gt;
  
      &lt;binding name="CommonUserNameBinding" maxConnections="1000" portSharingEnabled="True"&gt;
        &lt;security mode="None"&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
  
    &lt;/netTcpBinding&gt;
  
  &lt;/bindings&gt;
  
  
  &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt;
  
  &lt;services&gt;
    &lt;service name="MyNameSpace.SimplePluginService" behaviorConfiguration="CommonBehavior"&gt;
  
      &lt;endpoint address="UserName"
                binding="netTcpBinding" 
                bindingConfiguration="CommonUserNameBinding" 
                name="MyNameSpace.Contracts.ISimplePluginServiceUserName" 
                contract="MyNameSpace.Contracts.ISimplePluginService"&gt;
        &lt;identity&gt;
          &lt;dns value="WCfServer" /&gt;
        &lt;/identity&gt;
      &lt;/endpoint&gt;
  
      &lt;endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"  /&gt;
  
      &lt;host&gt;
        &lt;baseAddresses&gt;
          &lt;add baseAddress="net.tcp://localhost:5812/Service/SimplePluginService.svc"/&gt;
        &lt;/baseAddresses&gt;
      &lt;/host&gt;
  
    &lt;/service&gt;
  &lt;/services&gt;
  
  
  &lt;behaviors&gt;
  
    &lt;serviceBehaviors&gt;
      &lt;behavior name="CommonBehavior"&gt;
        &lt;serviceMetadata httpGetEnabled="True" policyVersion="Policy15" /&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="True"/&gt;
          &lt;serviceCredentials&gt;
  
          &lt;userNameAuthentication 
              userNamePasswordValidationMode="Custom"
              customUserNamePasswordValidatorType="Megatec.MasterTourService.CustomUserNameValidator, Megatec.MasterTourService"/&gt;
  
          &lt;serviceCertificate
              findValue="WCFServer"
              storeLocation="LocalMachine"
              storeName="My"
              x509FindType="FindBySubjectName"/&gt;
  
          &lt;clientCertificate&gt;
            &lt;authentication certificateValidationMode="PeerTrust" /&gt;
          &lt;/clientCertificate&gt;
  
        &lt;/serviceCredentials&gt;  
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  
  &lt;/behaviors&gt;
  
  &lt;/system.serviceModel&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I debug it on local IIS 7.5. Site and application have "net.tcp" in the Active protocols list.</p>
  
  <p>The IIS Binding for net.tcp is 5812:*</p>
  
  <p>I've got the following error </p>
  
  <p>There is no compatible TransportManager found for URI 'net.tcp://myComputerName:5812/Service/SimplePluginService.svc/mex'. This may be because that you have used an absolute address which points outside of the virtual application, or the binding settings of the endpoint do not match those that have been set by other services or endpoints. Note that all bindings for the same protocol should have same settings in the same application.</p>
  
  <p>I've read the following questions
  <a href="https://stackoverflow.com/questions/6112612/no-compatible-transportmanager-error">No compatible TransportManager error</a>, but it doesn't work for me.</p>
  
  <p><strong>UPDATE</strong>.
  The problem is connected with mex endpoint.</p>
  
  <p>I can create different endpoint for the service (with different binding and auth types), but mex endpoint made the error with TransportManager.</p>
  
  <p>It doesn't depends on behaviour and security mode (in binding section) according to my tests.</p>
  
  <p>So, what is wroung with mex endpoint?</p>