title: WCF service host cannot find any service metadata
body: <p>I'm just learning wcf and currently got this far.</p>
  
  <p><strong>CS File:</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Runtime.Serialization;
  using System.ServiceModel;
  using System.Text;
  
  namespace wcfLib
  {            
      [ServiceContract]
      public interface IfaceService
      {
          [OperationContract]
          int wordLen(string word);
      }
  
      public class StockService : IfaceService
      {
          public int wordLen(string word)
          {
              return word.Length;
          }
      }
  }
  </code></pre>
  
  <p>Yet when I'm trying to run it, it pops an error:</p>
  
  <blockquote>
    <p>WCF service host cannot find any service metadata...</p>
  </blockquote>
  
  <p>Any idea what it could be?</p>
  
  <p><strong>Config File:</strong></p>
  
  <pre><code>&lt;system.serviceModel&gt;
     &lt;services&gt;
        &lt;service behaviorConfiguration="wcfLib.Service1Behavior" name="wcfLib.Service1"&gt;
          &lt;endpoint address="" binding="wsHttpBinding" contract="wcfLib.ser"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://localhost:8732/Design_Time_Addresses/wcfLib/Service1/" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="wcfLib.Service1Behavior"&gt;
            &lt;serviceMetadata httpGetEnabled="True"/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="False" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>