title: Could not find default endpoint element that references contract :connect to WCF endpoint through Powershell cmdlet
body: <p>I have created a class library that should connect to a WCF endpoint project I am hosting.
  The client project has commandlets defined that should interact with the service.</p>
  
  <p>However, I keep getting the following error:</p>
  
  <pre><code>     Could not find default endpoint element that references contract Service1.MyService 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.
  </code></pre>
  
  <p>Do you know what the problem might be? </p>
  
  <p><strong>EDIT</strong>
  What I have is a single Class Library defining cmdlets. I use an .psd1 file to Import-Module which uses the dll files produced. </p>
  
  <p><em><strong>EDIT2</em></strong>
  Once again, I don't have a project referencing my library. It is the powershell that calls the commandlets defined and these cmdlets should connect to the WCF endpoint</p>
  
  <p>Thanks</p>