Error 5 : Access Denied when starting windows service

前端 未结 30 2456
滥情空心
滥情空心 2020-12-04 18:49

I\'m getting this error when I try to start a windows service I\'ve created in C#:

\"alt

My Code

30条回答
  •  暖寄归人
    2020-12-04 19:29

    Your code may be running in the security context of a user that is not allowed to start a service.

    Since you are using WCF, I am guessing that you are in the context of NETWORK SERVICE.

    see: http://support.microsoft.com/kb/256299

提交回复
热议问题