Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

All of a sudden my Windows service application after installation does not start. (Some services stop automatically if they have no work to do.)

The service uses a custom user. If I change the logon setting to use the local system account, the service starts fine. Then when I go back and change the login setting to use this custom account (local user -> custom user under user group), the service will start.

Why doesn't it work in the first place?

share|improve this question

migrated from stackoverflow.com Mar 25 '10 at 7:53

This question came from our site for professional and enthusiast programmers.

    
Look in the Windows Exception Log. It could be that you have the username/password for the service wrong and it's failing at login. –  Justin Niessner Mar 24 '10 at 15:18
    
when is the service failing? at boot? is it trying to start before some other service it depends on has started? –  quack quixote Mar 25 '10 at 8:17
add comment

1 Answer

Is the user account disabled?
Does the user account have "User must change password at next logon" checked?
Does the user account have rights to run as a service?

share|improve this answer
    
1. User is not disabled 2. nope, set to password never expires 3. user is create for running the service so it has all rights, only confusing point is how does the same user and password works fine after running the service once with local user? –  Gauls Jul 2 '10 at 10:04
    
Doesn't give any exceptions in the log, service is failing when trying to start just after installer has finished installing the service or anytime the service is stopped and started again. –  Gauls Jul 2 '10 at 10:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.