views:

43

answers:

1

Hello,

I am trying to create a simple Windows Service. The User Account for the service is NetworkService Then i ran installUtil from command prompt and i got this :-

The Commit phase completed successfully.

The transacted install has completed.

which means the service got installed successfully. But when i try to run it from the Service applet i get this error :-

Windows cannot the CustomersService service on Local Computer. Error 5 : Access is denied.

What am i doing wrong?

I am using 64bit Windows 7.

A: 

Through which user account type are you trying to start/stop the service? Make sure the user has sufficient privileges to start/stop a service.

ajay_whiz
@Ajay, I am running under `NetworkService ` account. Doesn't this account already have the permission to start or stop the service? If not, how do i set it? Can you mention the steps?
Ankit Rathod
@Nitesh I meant the user through which you have logged into the system
ajay_whiz
Nope. I found the solution. The solutions is :- http://stackoverflow.com/questions/574411/system-error-5-access-is-denied-when-starting-a-net-service
Ankit Rathod