WCF using windows service

后端 未结 2 1514
予麋鹿
予麋鹿 2020-12-19 19:48

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

相关标签:
2条回答
  • 2020-12-19 20:14

    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.

    0 讨论(0)
  • 2020-12-19 20:15

    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...

    0 讨论(0)
提交回复
热议问题