title: WCF - Contract Name could not be found in the list of contracts
body: <p>I am relatively new to WCF. However, I need to create a service that exposes data to both Silverlight and AJAX client applications. In an attempt to accomplish this, I have created the following service to serve as a proof of concept:</p>
  
  <pre><code>[ServiceContract(Namespace="urn:MyCompany.MyProject.Services")]
  public interface IJsonService
  {
      [OperationContract]
      [WebInvoke(Method = "GET",
                 RequestFormat=WebMessageFormat.Json,
                 ResponseFormat = WebMessageFormat.Json)]
      List&lt;String&gt; JsonFindNames();
  }
  
  [ServiceContract(Namespace="urn:MyCompany.MyProject.Services")]
  public interface IWsService
  {
      [OperationContract(Name="FindNames")]
      List&lt;String&gt; WsFindNames();
  }
  
  
  [ServiceBehavior(Name="myService", Namespace="urn:MyCompany.MyProject.Services")]
  public class myService : IJsonService, IWsService
  {
      public List&lt;String&gt; JsonFindNames() 
          { return FindNames(); }
      public List&lt;String&gt; WsFindNames()
          { return FindNames(name); }
      public List&lt;string&gt; FindNames()
      { 
         List&lt;string&gt; names = List&lt;string&gt;(); 
         names.Add("Alan");
         names.Add("Bill");
         return results; 
      }        
  }
  </code></pre>
  
  <p>When I try to access this service, I receive the following error:</p>
  
  <p>The contract name 'myService' could not be found in the list of contracts implemented by the service 'myService'.</p>
  
  <p>What is the cause of this? How do I fix this?</p>
  
  <p>Thank you</p>