I created a WCF service today after a long time and I hosted it using a Windows service. While doing so I created the wcf proxy client and its config settings were generated. Then I need to use this client in my web application to call the service methods to do some work. When I did that I got the error "Could not find default endpoint element that references contract....".
Solution: To get this error resolved one has to add the section with all the contents from proxy's app.config file to the web.config file of the web application.
Solution: To get this error resolved one has to add the