I am creating a WCF service which is to be hosted in Windows Service. I created a console application as follows
I went to management console (services.msc) and star
Your config and code looks fine - are you sure that there is a (yourapplication).exe.config file in the same directory where (yourapplication).exe is located, the one you launch as your service?
The error message would indicate that config file is missing. Make sure it's there - otherwise your NT service cannot set up the WCF service as needed.
Make Sure you specify same app.config both in WCF service and Windows Service . If this also does not help delete app.config from WCf service , configure aap.config manually in windows service and copy it to WCf service . This will surely solve your problem...