Class Library Project cannot connect to WCF endpoint
===

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.

However, I keep getting the following error:

         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.


Do you know what the problem might be? 

Thanks