WCF using windows service

后端 未结 2 1517
予麋鹿
予麋鹿 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.

提交回复
热议问题