Error 5 : Access Denied when starting windows service

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

    I got the solution:

    1. Go to local service window(where all services found)
    2. Just right click on your service name: 
    3. click on "properties" 
    4. go to "log on" tab
    5. select "local system account"
    6. click "ok"
    

    now you can try to start the service.

提交回复
热议问题