I am trying to consume a service in my module in the module web config I added my service config as the following.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="WSEventSoap" />
<binding name="BasicHttpBinding_ITwitterService" />
<binding name="BasicHttpBinding_ILoyalty">
<security mode="Transport" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint name="BasicHttpBinding_ITwitterService"
address="wwww.mysite.com/MediaServices/TwitterService.svc"
binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_ITwitterService"
contract="TwitterService.ITwitterService" />
</client>
</system.serviceModel>
within the modules web.config
. What I am noticing is that
- I can't seem to access web config settings in my module
- I keep getting the following error.
Could not find default endpoint element that references contract 'TwitterService.ITwitterService' 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.
Please help.