Error 5 : Access Denied when starting windows service

前端 未结 30 2479
滥情空心
滥情空心 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:10

    As the error popup suggests this is related to permission. So run the service as "LocalSystem" account.

    To do the same, Right Click on serviceProcessInstaller -> Properties -> Account and set it to "LocalSystem" instead of the default "User". Install the service and voila.

提交回复
热议问题