Could not find default endpoint element that references contract '{0}' in the ServiceModel client configuration section. ...

Could not find default endpoint element that references contract '{0}' 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.