Error 5 : Access Denied when starting windows service

前端 未结 30 2445
滥情空心
滥情空心 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 don't know if my answer would make sense to many, but I too faced the same issue and the solution was outrageously simple. All I had to do was to open the program which I used to run the code as an administrator. (right-click --> Run as Administrator).

    That was all.

提交回复
热议问题