title: WCF NetTcpBinding with mex
body: <p>I'm trying to publish a wcf service using nettcpbinding. I want to publish metadata, using ?wsdl.
  I added the following line to the config file:</p>
  
  <pre><code>&lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/&gt;
  </code></pre>
  
  <p>but I can't see the wsdl in my browser. what did I do wrong?
  Thanks.</p>
  
  <p>Edit: Here is the relevant part of my config file:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
     &lt;services&gt;
  &lt;service name="wcfcheck.service1" behaviorConfiguration="wcfcheck.Service1Behavior"&gt;
         &lt;endpoint address="" binding="netTcpBinding" contract="wcfcheck.Iservice1"/&gt;
         &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/&gt;
  &lt;/service&gt;
     &lt;/services&gt;
  &lt;behaviors&gt;
  &lt;serviceBehaviors&gt;
    &lt;behavior name="wcfcheck.Service1Behavior"&gt;
      &lt;serviceMetadata httpGetEnabled="true" httpGetUrl=""/&gt;
      &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt;
    &lt;/behavior&gt;
  &lt;/serviceBehaviors&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>I might not be accessing the right URL. I tried both <a href="http://localhost:51159/Service1.svc?wsdl" rel="noreferrer">http://localhost:51159/Service1.svc?wsdl</a> and <a href="http://localhost:51159/Service1.svc/mex?wsdl" rel="noreferrer">http://localhost:51159/Service1.svc/mex?wsdl</a>, and without the '?wsdl'.</p>