c# - "Could not find default endpoint element that references contract" -


yes, know question repeat, bear me here. i've tried i've seen in other questions of same type , still haven't managed working.

i'm working .net 4.0 in vs2012 ultimate. have class library that's supposed reference web service. going through usual steps (add service reference > enter service uri > go > find available service > give name > ok) creates service reference , adds system.servicemodel tag in app.config file of class library.

this class library being referenced winforms app that's passing data it, validated returned data web service. however, upon creation of service client object...

shws.staticxmlapisoapclient wsc =     new shws.staticxmlapisoapclient(); 

...the code crashes error noted in question title, "could not find default endpoint element references contract 'shws.staticxmlapisoap' in servicemodel client configuration section. might because no configuration file found application, or because no endpoint element matching contract found in client element."

i have tried i've found on net, copying [class library name].dll.config file output folder of winforms app, copying system.servicemodel tag 1 config file other, , still no luck.

i'm literally @ wit's end. appreciated, since 1 of key points of app i'm working on @ moment. apologies ridiculous request, , in advance time.

have tried adding same system.servicemodel sections/settings winforms app.config file ?


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -