Tuesday, July 23, 2013

Error: Could not find default endpoint element

Could not find default endpoint element that references contract 'Service.Name' 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.
The Endpoint for the service is missing from the web.config file. The endpoint element should be added under the client parent element in the web.config file. An example would be:

<endpoint address="http://prodcrmservices:8080/Service.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService" contract="CRM.IService" name="BasicHttpBinding_IService" />

No comments:

Post a Comment