title: Could not find endpoint element with name and contract
body: <p>I have added reference to a WCF service that has two end points. On adding the service the following get added to the Config file:</p>
  
  <pre><code>&lt;client&gt;
    &lt;endpoint name="ABCServiceV1" address="http://staging.ABCwebservices.com/ABC/Service.svc"
      binding="basicHttpBinding" bindingConfiguration="ABCServiceV1"
      contract="ABCService.IService"  /&gt;
    &lt;endpoint name="ABCServiceV2" address="http://staging.ABCwebservices.com/ABC/Service.svc/20"
      binding="basicHttpBinding" bindingConfiguration="ABCServiceV2"
      contract="ABCService.IService1"  /&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p>The code to create the client is as as below:</p>
  
  <pre><code>ABCService.ServiceClient ABCClient = new ServiceClient("ABCServiceV2");
  </code></pre>
  
  <p>However, I am getting an runtime error - "Could not find endpoint element with name 'ABCServiceV2' and contract 'ABCService.IService' 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 name could be found in the client element."</p>
  
  <p>if i used <code>ABCService.ServiceClient ABCClient = new ServiceClient("ABCServiceV1");</code> then everything works fine. But when using ABCServiceV2 it is trying to look for Contract - ABCService.IService - when it should be looking for - ABCService.IService1. </p>
  
  <p>How do i make it look for the correct contract?</p>