Cannot start [service name] service from computer '.'. Access Denied
Posted on 2011-02-14
I have a Windows Service(of Account- LocalSystem) which has to be started from a VB.NET Windows Application whose UAC level is set to "asInvoker". If i start the Service manually it works. If i launch the Windows Application through - launch option from Finish Dialog of Setup Installation Process(Run As Administrator) also starts the Service.. But by programmatically, using mySPCObject.Start() - throws an Error "Cannot start [service name] service from computer '.'. Access Denied."
Looks like Sufficient privilege is not there for that user..? If so how do i set the access rights programmatically to start the service ?
Any help appreciated...