title: WCF web service does not return WSDL
body: <p>Using <code>wsdl.exe /l:CS /serverInterface</code>, I generated a C# interface from a WDSL document.  I've implemented that interface on a WCF class.  The resulting service runs locally:</p>
  
  <pre><code>http://localhost:51454/TapasSim.svc
  </code></pre>
  
  <p>This shows the default site. The problem appears when I append <code>?wsdl</code> to the URL:</p>
  
  <pre><code>http://localhost:51454/TapasSim.svc?wsdl
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/s0nHj.png" alt="enter image description here"></p>
  
  <p>Unlike what I expected, this link does not return a WDSL document!  Instead, it points back to the exact web page you get without the <code>?wsdl</code>.  As a result, I cannot reference the web service. If I run <code>svcutil.exe</code> it gives this error:</p>
  
  <blockquote>
    <p>If you were trying to generate a client, this could be because the
    metadata documents did not contain any valid contracts or services or
    because all contracts/services were discovered to exist in /reference
    assemblies. Verify that you passed all the metadata documents to the
    tool.</p>
  </blockquote>
  
  <p>But I would expect that error to have the same cause as the lack of reply to <code>?wsdl</code>.</p>
  
  <p>What could cause a WCF <code>.svc</code> service not to generate WSDL?</p>