Monday, 3 September 2012

BizTalk : WCF consuming error "Could not find default endpoint element "

Calling WCF service from assembly

WCF Service  -->  .NET Assembly(consumer for WCf service)  ---> BizTalk Orchestration(assembly referred)

Error :

Could not find default endpoint element that references contract 'proxyWCF.Interface' 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.

Solution :
This error occur when calling WCF service thrugh .NET Assembly, When using assembly in orchestration the BizTalk Application in not able to find service endpoint and binding setting and hence give error "could not find default endpoint".
To resolve this error, we need to specify Endpoint for this service in btsnsvc.eve.config & btsnsvc64.eve.config  file,so that biztalk runtime will get the endpoints from config file.
Add the following nodes from App.config file of Assembly(WCf service is called) to btsnsvc.eve.config & btsnsvc64.eve.config  file.
 Specify service binding configuration
<endpoint>Specify service enpoints

No comments:

Post a Comment