I have a windows service project implementation that I am trying to install as network service.
process = new ServiceProcessInstaller();
process.Account = ServiceAccount.NetworkService;
however whenever I try to start the service I get :
System error 5 has occurred.
Access is denied.
This comes after running the net start MyService
command in the visual studio command prompt which is running as administrator by the way.
Any help on how to get this to work? Thanks.
See Question&Answers more detail:os