Could not find default endpoint element that references contract service
Hi, I am calling a WCF web service in my application and I get the following error. Any help please..
Couldnot find default endpoint element that references contract 'Service.Service'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.
William Patrick Answered on: Dec 01, 2011 at 3:23AM
above is the service model I used.
edit | flag
William Patrick Answered on: Dec 01, 2011 at 3:24AM
This sounds silly but it works!! If you add the service to a Class Library it wont work out the box, copy the system.serviceModel section from the app.config in your library project and put it in your web.config Good luck!!
edit | flag
Gokul A Answered on: Dec 01, 2011 at 3:25AM
Post your Answer
Welcome to Ask Amoeba! This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions. Learners, beginners, Experts stop and share your knowledge and ideas!