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
The Local Services account doesn't seem to be privileged to control a service. So, in the service's LogOn Property, change the account type to Local System and allow service to interact with desktop.
Also, make sure that, you install the service using instalutil, as an administrator.
Lastly, when you want to run a service from the command prompt using the "net start [service name]" command, you have to run the command prompt as an administrator.