Reputation: 163
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?
Upvotes: 13
Views: 164818
Reputation: 426
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.
Upvotes: 1
Reputation: 1
You might want to uninstall the service, Install it again as administrator. Now run it. it should work.
Upvotes: 0
Reputation: 26821
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.
Upvotes: 1
Reputation: 1203
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.
Upvotes: 59
Reputation: 2911
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.
Upvotes: 3
Reputation: 163
Follow the steps- Cannot Start Windows Service in NetworkService account.
Click on Edit -> Search for NETWORK SERVICE -> Add that. Then provide necessary permissions.
Upvotes: 1