After debugging and installing windows service in windows 8 I have error when I try to start a windows service :"The Windows could not start service on local computer Error 5 Access is denied" .While attempting fist answer from this link i found that NETWORK SERVICE account doesn't exist in the list of user names for assigning the correct permissions in windows 8 .How i can solve this problem using windows 8?
-
Is anything written to the event viewer or used proc mon (a sysinternals tools) to see what the access issue is? – PCG Dec 09 '13 at 12:32
6 Answers
Right click in the service in Window Services and go to Properties. Then go to Log On tab and select Local System account. Click on Ok button and start the service.

- 4,232
- 9
- 40
- 66

- 1,193
- 9
- 13
-
That was pretty easy. Not sure about the checkbox of allow service to interact with desktop. – Shoaib Mar 09 '16 at 15:39
-
7
-
This is dangerous advice depending on the service. Many services need to run as a less privileged user than Local System or Administrator. – Alexandra Oct 31 '19 at 19:09
I got this error due to the executable that the service was pointed at being missing, in my case it had been removed by the Anti Virus on the PC.

- 2,763
- 2
- 26
- 43
Follow the steps- Cannot Start Windows Service in NetworkService account.
Click on Edit -> Search for NETWORK SERVICE -> Add that. Then provide necessary permissions.

- 1
- 1

- 163
- 2
- 2
- 8
You might want to read these instructions: http://www.thewindowsclub.com/access-is-denied-local-services-windows-8-1. It involves you changing the permissions in the Registry, then rebooting your system.

- 26,189
- 23
- 116
- 147
Check the Event Viewer in Windows for more details on the error. In my case, the application could not login to the database. Giving it a 5. Acces Denied error.

- 426
- 4
- 21
You might want to uninstall the service, Install it again as administrator. Now run it. it should work.