title: Error creating WCF webservice
body: <p>I have created a new WCF web service and but when i try to run it, I get this error</p>
  
  <blockquote>
    <p>No code was generated.If you were trying to generate a client, this could be because the metadata documents did not contain any valid contracts or servicesor because all contracts/services were discovered to exist in /reference assemblies. Verify that you passed all the metadata documents to the tool.Warning: If you would like to generate data contracts from schemas make sure to use the /dataContractOnly option.</p>
  </blockquote>
  
  <p>My <code>web.config</code> looks like</p>
  
  <pre><code>&lt;services&gt;
       &lt;service name="namespace.serviceName" 
                behaviorConfiguration="MyServiceTypeBehaviors" &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="MyServiceTypeBehaviors"&gt;
        &lt;serviceMetadata httpGetEnabled="true" /&gt;
      &lt;/behavior&gt;
      &lt;behavior name=""&gt;
        &lt;serviceMetadata httpGetEnabled="true" /&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  </code></pre>
  
  <p>Background is, I have been given a <code>dll</code> from a third party and I created a new web service so that I can implement all the interface methods needed, but when I try to run this web service through Visual Studio, I get the error shown above.</p>
  
  <p>If I directly run <code>website.com/folder/serviceName.svc</code>, I see the service but clicking on it doesn't do anything.</p>
  
  <p>Update: I have fixed the above error my making some changes in <code>web.config</code> file but now when I run my service, I get no method (I am using Visual Studio inbuilt WcfTestClient)</p>