Error 5 : Access Denied when starting windows service

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

    This worked for me.

    1. Right-click on top-level folder containing the service executable. Go to Properties
    2. Go to "Security" Tab
    3. Click "EDIT"
    4. Click "ADD"
    5. Enter the name "SYSTEM", click OK
    6. Highlight SYSTEM user, and click ALLOW check-box next to "Full control"
    7. Click OK twice

提交回复
热议问题