I generated a webservice stub using the svcutil. It generated the cs and config files. I added these two files to my webpart. The webpart has a button that I click to initiate the web service call; however, it seems the config was not loaded
and I get this error message:
Could not find default endpoint element that references contract 'IMapService' 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.
I copied the content of config to Sharepoint web.config but I still got the error.
View Complete Post