title: "Failed to add a service. Service metadata may not be accessible"
body: <p>I get the error message: Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata when I run the program.  If I remove the ProductClass from Product and comment out assigning value in GetProduct and rerun I am able to run the program.  I need to return som</p>
  
  <pre><code>[ServiceContract(Namespace = "http://test.com")]
  public interface IProducts
  {
      [OperationContract]
      Product GetProduct(ProductRequest productRequest);
  }
      [ServiceBehavior(Namespace = "http://test.com")]
  public class ProductService : IProducts
  {
      public Product GetProduct(ProductRequest productRequest)
      {
          Product product = new Product
          {
              id = 1,
              productName = "Xbox"
          };
          product.productSegment = new ProdSegment()
          {
              id=1,
              segment="Video Games"
          };
          return product;
      }
  }
  [DataContract(Namespace = "http://test.com")]
  public class ProductRequest
  {
      [DataMember]
      public int id { get; set; }
      [DataMember]
      public ProductSegment productClass { get; set; }
  }
  [DataContract(Namespace = "http://test.com")]
  public class ProductSegment
  {
      [DataMember]
      public int id { get; set; }
      [DataMember]
      public string segment { get; set; }
  }
  [DataContract]    
  public class ProdSegment
  {
      [DataMember]
      public int id { get; set; }
      [DataMember]
      public string segment { get; set; }
  }
  
  [DataContract]
  public class Product
  {
      [DataMember]
      public int id { get; set; }
      [DataMember]
      public string productName { get; set; }
      [DataMember]
      public ProdSegment productSegment { get; set; }
  }
  </code></pre>