Reputation: 1
I get this error when invoking my dll with SAP B1 Integration Framework:
Could not find default endpoint element that references contract 'MobiService.AccountsSoap' in the Service Model 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.
But when I invoke the DLL via another .NET application it works. My app config is set:
<client>
<endpoint address="http://191.211.42.100/MobiVendWSTest/accounts.asmx"
binding="basicHttpBinding" bindingConfiguration="AccountsSoap"
contract="MobiService.AccountsSoap" name="AccountsSoap" />
</client>**
Upvotes: 0
Views: 1681
Reputation: 56697
You need to copy the entire service configuration from the DLL's app.config
to your application's app.config
, as DLLs can not have their own app.config
.
The application will read its app.config
and the DLL will automatically find the settings even though there's no separate config file for it.
Upvotes: 2