Windows Service not Starting with Windows

J

Johnny Fugazzi

OK, I created my handy little windows service and created an MSI installer
using the Deployment tool in VS.net with Custom Actions according to the
msdn help.

Worked great, with one little hitch. The Service is installed and marked
for Automatic startup, but the service is not starting with windows. If i
reboot and then check the services, the service shows as Stopped, but still
marked Automatic.

Any idea?

The service runs under the LocalSystem account.
 
T

Tom Shelton

OK, I created my handy little windows service and created an MSI installer
using the Deployment tool in VS.net with Custom Actions according to the
msdn help.

Worked great, with one little hitch. The Service is installed and marked
for Automatic startup, but the service is not starting with windows. If i
reboot and then check the services, the service shows as Stopped, but still
marked Automatic.

Any idea?

The service runs under the LocalSystem account.

Can you start the service manually?
 
J

Johnny Fugazzi

Yup. The service will start if I open it up and hit Start. Would like it
to start with the computer however.... The computer it is on may get
restarted from time to time due to power loss, etc...
 
C

Chris Dunaway

Yup. The service will start if I open it up and hit Start. Would like it
to start with the computer however.... The computer it is on may get
restarted from time to time due to power loss, etc...

When the service starts with Windows, it runs under the LocalSystem
account. When you start it manually, it runs under your account.

Right click on the service and hit properties. Then look at the LogOn tab
and setting your service to start using your credentials. If that works,
then it might indicate that your service needs permissions to do things
that the LocalSystem account cannot.

Also, check the application and system event logs for error messages. That
may also give you a clue as to why the service is stopping.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top