Service will not start after a reboot

W

Waldy

Hi there,
I have written a .Net 2.0 windows service that runs fine when
started manually, and the whole point of writing it as a service was to make
sure that it is always running. However, even though it is set to start
automatically, it does not start after a reboot. There are no clues in the
Event log and there are no dependencies on other services. How do I track
down the problem?
 
P

Pegasus \(MVP\)

Waldy said:
Hi there,
I have written a .Net 2.0 windows service that runs fine when
started manually, and the whole point of writing it as a service was to
make sure that it is always running. However, even though it is set to
start automatically, it does not start after a reboot. There are no
clues in the Event log and there are no dependencies on other services.
How do I track down the problem?

All service start/stop events are reported in the Event Viewer. If yours
isn't then there is probably something wrong with the way you designed it.
If you cannot work out what it is then you can try walking around the
problem: Use the Task Scheduler to run the following batch file at boot
time, then examine the log file it generates:
@echo off
echo %date% %time%>>c:\Waldy.log
net start "Waldy Service" 1>>c:\Waldy.log 2>>&1
net start | find /i "Waldy Service" 1>>c:\Waldy.log 2>>&1
 
W

Waldy

I suspect it was to do with the Event Source. I set the service to run
under an admin account, rebooted and then set it back to Local System and it
now runs OK.
 

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