Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Unable to consume a WCF Service from a Plugin

$
0
0

Hi Experts,

I am in a trouble since yesterday, I have a Plugin from which i am trying to call a Service Method of a WCF service. But i am facing this error:

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

This is how my app.config of Client (Plugin) looks like,

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IAccount" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://someipadress:xy/CRMService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IAccount"
contract="IAccount" name="BasicHttpBinding_IAccount" />
</client>

</system.serviceModel>

</configuration>


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>