title: Facing issue with WCF: Could not find default endpoint
body: <p>I created a <code>WCF</code> service in separate project name is <strong>AaWs</strong> then added this project in a website project as a reference . website project name is <strong>AaNuWs</strong> </p>
  
  <p>in website project web.config file is </p>
  
  <pre><code>  &lt;system.web&gt;
      &lt;compilation debug="true" /&gt;
    &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="mexBehavior"&gt;
            &lt;serviceMetadata httpGetEnabled="True"/&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="mexBehavior" name="AaWs.RxtraIntroService"&gt;
          &lt;endpoint address ="AaWs" binding="basicHttpBinding" contract="AaWs.IRxIntro"&gt;
          &lt;/endpoint&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress = "http://localhost:8080" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
      &lt;/services&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>then uploaded this website project on my web server.</p>
  
  <p>then give the service reference in my new project from my website with a name space </p>
  
  <blockquote>
    <p>IntroService</p>
  </blockquote>
  
  <pre><code>http://mywebsite/IntroService.svc?wsdl
  </code></pre>
  
  <p>new system create a new app.config file for me </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="BasicHttpBinding_IRxIntro" /&gt;
              &lt;/basicHttpBinding&gt;
          &lt;/bindings&gt;
          &lt;client&gt;
              &lt;endpoint address="http://mywebsite/IntroService.svc/RecoverInfoTechAaWs"
                  binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IRxIntro"
                  contract="IntroService.IRxIntro" name="BasicHttpBinding_IRxIntro" /&gt;
          &lt;/client&gt;
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt; 
  </code></pre>
  
  <p>but now when i trying to access this service i am getting a error.</p>
  
  <blockquote>
    <p>System.InvalidOperationException: Could not find default endpoint
    element that references contract 'IntroService.IRxIntro' 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>please help me on this </p>