Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

Consuming webservice from class library

$
0
0

Hi,

I have to make a class library with a service reference in it. All the communication with the web service has to go via this class library. Now when i make a second application(winforms) to call the methodes in the class library that make call to the web service, i get the error:

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

Now when i copy the app.config content of the class library project in my winforms clien app, it works, but this is not what i want, the class library has to use it's own app.config

How can solve this?

Kind regards,

Kabida


Viewing all articles
Browse latest Browse all 555

Trending Articles



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