System error 5 Access is denied when starting a .NET service

前端 未结 10 1794
离开以前
离开以前 2020-12-03 02:32

When I try to start a service I created in Visual Studio I receive the following error:

System error 5 has occurred.

Access is denied.

I a

10条回答
  •  一向
    一向 (楼主)
    2020-12-03 02:55

    Just ran into this issue after I had run an 'sc config' to change binPath of the service.

    The only fix that worked for me was to 'sc delete' the service and install again.

    Things worked perfectly after that.

提交回复
热议问题