Error 5 : Access Denied when starting windows service

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

    One of the causes for this error is insufficient permissions (Authenticated Users) in your local folder. To give permission for 'Authenticated Users' Open the security tab in properties of your folder, Edit and Add 'Authenticated Users' group and Apply changes.

    Once this was done I was able to run services even through network service account (before this I was only able to run with Local system account).

提交回复
热议问题