title: Could not find default endpoint element ... in WCF Client
body: <p>I created a proxy Library Class in the Service Solution referencing the Contract Assembly as well and copied the libraries (Contract,Proxy) to another solution folder. Then referenced the Proxy,Contract and System.ServiceModel libraries in another class library where i need to use the one method contained, as well as adding an App.Config inside the library.</p>
  
  <p>The Service is hosted in a windows forms application. The client is a class library called from a windows forms application.I haven't created an App.Config inside the windows form project. In fact the Windows Form project loads a control in a library and the control loads the library where i need to use the service method. So i thought i should only reference the (Contract and proxy) in the latest assembly since i wont use it anywhere else.</p>
  
  <p>But i keep getting this error:</p>
  
  <blockquote>
    <p>Could not find default endpoint
    element that references contract
    'Sign.Contracts.ISignDocument' 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>App.Config in libray calling the proxy:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;client&gt;
          &lt;endpoint
            address="http://localhost:8731/SignHere"
            binding="basicHttpBinding"
            contract="Sign.Contracts.ISignDocument" /&gt;
        &lt;/client&gt;
      &lt;/services&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>App.Config in service Host:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service name="Sign.Service.SignDocumentService"&gt;
          &lt;endpoint 
            address="http://localhost:8731/SignHere" 
            binding="basicHttpBinding" 
            contract="Sign.Contracts.ISignDocument" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>the Proxy class:</p>
  
  <pre><code>namespace Sign.Proxies
  {
      public class Proxy : ClientBase&lt;ISignDocument&gt;, ISignDocument
      {
          public string SignDocument(string document)
          {
              return Channel.SignDocument(document);
          }
      }
  }
  </code></pre>
  
  <p>the Contract class:</p>
  
  <pre><code>namespace Sign.Contracts
  {
      [ServiceContract]
      public interface ISignDocument
      {
          [OperationContract]
          string SignDocument(string document);
      }
  }
  </code></pre>
  
  <p>Any ideas?</p>