title: WCF service host cannot find any service metadata. Please Check if metadata is enabled
body: <p>My App.config file is </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service name="WcfJsonRestService.Service1"&gt;
          &lt;endpoint address="http://localhost:8733/service1" 
                    binding="webHttpBinding" 
                    contract="WcfJsonRestService.IService1"/&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior&gt;
            &lt;webHttp /&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/&gt;
    &lt;/startup&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>My service1.cs code is as below</p>
  
  <pre><code>using System;
  using System.ServiceModel.Web;
  
  namespace WcfJsonRestService
  {
      public class Service1 : IService1
      {
          [WebInvoke(Method = "GET", 
                      ResponseFormat = WebMessageFormat.Json, 
                      UriTemplate = "data/{id}")]
          public Person GetData(string id)
          {
              // lookup person with the requested id 
              return new Person()
                         {
                             Id = Convert.ToInt32(id), 
                             Name = "Leo Messi"
                         };
          }
      }
  
      public class Person
      {
          public int Id { get; set; }
          public string Name { get; set; }
      }
  }
  </code></pre>
  
  <p>Initially this was giving issue as </p>
  
  <p><strong>WCF Service Host Configuration - Please try changing the HTTP port to 8733</strong></p>
  
  <p>So I had followed Executing the following code in CMD</p>
  
  <pre><code>netsh http add urlacl url=http://+:8733/ user=WORK\Clara
  </code></pre>
  
  <p>After executing this code I am facing new error as below<a href="https://i.stack.imgur.com/A6J1O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A6J1O.png" alt="enter image description here"></a></p>
  
  <p>How can I resolve this issue?</p>
  
  <p>I have also tried updating the App.Config as said over below link but then after I was getting some another error</p>
  
  <p><a href="https://stackoverflow.com/questions/5221692/wcf-service-host-cannot-find-any-service-metadata">WCF service host cannot find any service metadata</a></p>