Could not find default endpoint element that references contract 'ServiceReference1.IService1' in the ServiceModel client configuration section

I got the below error while trying to call a wcf service inside my visual webpart in SharePoint 2010. Here is the error message: Could not find default endpoint element that references contract 'ServiceReference1.IService1' in the ServiceModel client configuration section.

If You Like this Post, Please Like us in Facebook and Follow us in Twitter