title: wcf Configuration : Failed to add a service. Service metadata may not be accessible
body: <p>I got this probleme while debbuging My wcf service : </p>
  
  <p><p>Failed to add a service. Service metadata may not be accessible</p>
  
  <p>My config : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
  &lt;system.serviceModel&gt;
  
      &lt;behaviors &gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior &gt;
            &lt;serviceMetadata httpGetEnabled="true" /&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior name="ServiceAspNetAjaxBehavior"&gt;
            &lt;enableWebScript/&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt;
      &lt;services&gt;
        &lt;service name="Serv.Service1" behaviorConfiguration=""&gt;
          &lt;endpoint address=""  binding="webHttpBinding" contract="Serv.IService1" behaviorConfiguration="ServiceAspNetAjaxBehavior"/&gt;
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/&gt;
               &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress = "http://localhost:8733/Design_Time_Addresses/Serv/Service1/" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
  
        &lt;/service&gt;
  
      &lt;/services&gt;
    &lt;/system.serviceModel&gt;
    &lt;/configuration&gt;
  </code></pre>
  
  <p>and My Contract : </p>
  
  <pre><code>public interface IService1
  {
  
      [OperationContract]
      void Register(string Name, string Email, string Phone, string Password);
  
  
      [OperationContract]
      void Reserve(int User_ID, int Table, DateTime Date);
  
  
      [OperationContract]
      DataTable Login(string Email, string Password);
  
      [OperationContract]
      string heck_Email(string Email);
  
      [OperationContract]
      DataTable Show_History(int User_ID);
  
  
      [OperationContract]
      List&lt;Data.Product&gt; Show_P();
  
  
  
      [OperationContract]
      Data.Login Log(string User, string Pass);
  }
  </code></pre>
  
  <p>i tried to change my Config But it didnt work i still get the same error message help pls !</p>