title: Could not find default endpoint element that references contract... But application still works
body: <p>I am currently working on a WPF Application, using a different project to call a WebService.
  When I try to build i get this error: </p>
  
  <blockquote>
    <p>Could not find default endpoint element that references contract<br>
    'VisitorRegistrationWebService.VisitorRegistrationWebServiceSoap' 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>The app.config from my webservice project is just the same as the one from my WPF project.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
  &lt;system.serviceModel&gt;
  &lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding name="VisitorRegistrationWebServiceSoap" /&gt;
    &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;client&gt;
    &lt;endpoint address="http://localhost/webservices/VisitorRegistrationWebService.asmx"
        binding="basicHttpBinding"   bindingConfiguration="VisitorRegistrationWebServiceSoap"
        contract="BasicVisitorRegistrationWebService.VisitorRegistrationWebServiceSoap"
        name="VisitorRegistrationWebServiceSoap" /&gt;
  &lt;/client&gt;
  &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The strange thing is that I can run the project and use the webservice to get data, but the error will not go away, no matter how many times I clean and rebuild my solution.</p>