title: WCF Endpoint Error: Could not find default endpoint element
body: <p>So here is my problem. I have a client that is utilized within a service, and when I test said service using the built-in test host in Visual studio, all of the service contracts are available. But, when I try to test one of the service contracts, Visual studio spits out the following error </p>
  
  <blockquote>
    <p>Could not find default endpoint element that references contract 'TestServiceReference.ITestService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.</p>
  </blockquote>
  
  <p>Now, I know the immediate and obvious answer is to check my config to make sure that my endpoint is correct, but that is the thing, it is correct. I checked both the web.config for the service implementing the client, and the app.config for the client. Both endpoints are correct(at least I think they are). </p>
  
  <p>Here is the web.config endpoint:</p>
  
  <pre><code>&lt;endpoint address="http://testServiceRepo/TestServices/TestService.svc"
              binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ITestService"
              contract="TestServiceReference.ITestService"
              name="BasicHttpBinding_ITestService" /&gt;
  </code></pre>
  
  <p>Here is the app.config endpoint:</p>
  
  <pre><code>&lt;endpoint address="http://testServiceRepo/TestServices/TestService.svc"
              binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ITestService"
              contract="TestServiceReference.ITestService"
              name="BasicHttpBinding_ITestService" /&gt;
  </code></pre>
  
  <p>The endpoints are the exactly the same, and they both reference TestServiceReference.ITestService. So, I am at a loss here. What would you guys suggest? </p>
  
  <p>Thanks for any help!</p>