title: Could not find default endpoint element that references contract.in the ServiceModel client configuration section
body: <p>I have added a service reference named <a href="http://192.168.5.180:8080/intg/CrmWebService.asmx" rel="nofollow">http://192.168.5.180:8080/intg/CrmWebService.asmx</a>.
  with name CrmWebProxy.</p>
  
  <p>Below are the line of code.</p>
  
  <pre><code>Microsoft.Crm.Accelerator.Cca.SampleServices.CrmWebService.CustomerRecord[] resultWebService = new Microsoft.Crm.Accelerator.Cca.SampleServices.CrmWebService.CustomerRecord[3];
  Microsoft.Crm.Accelerator.Cca.SampleServices.CrmWebService.CRMWebServiceSoapClient client = new Microsoft.Crm.Accelerator.Cca.SampleServices.CrmWebService.CRMWebServiceSoapClient();
  resultWebService = client.GetCustomerData(firstName, lastName, phoneNumber, email, accountName, accountNo, maxRecords);
  </code></pre>
  
  <p>I get the above mentioned error.But if I test it in sample application it runs perfectly.</p>
  
  <p>Any help.</p>