Windows Service not starting automatically

G

Guest

I've created a Windows Service in vb.net that is set up to run automatically,
but it never starts during system startup. I can start it manually, but I
need the service to start without any user interaction. When I originally
installed the service, I had to attempt the start twice as well from the
Service Manager. So, for some odd reason, it has to be told twice to start.

I get the following errors in the System log at startup:

Timeout (30000 milliseconds) waiting for the LU/LW Mail Service service to
connect.

- and -

The LU/LW Mail Service service failed to start due to the following error:
The service did not respond to the start or control request in a timely
fashion.

I'm not sure what's causing the service to time out like that, and I don't
know where to start looking to fix it.

Any ideas?
 
C

Chris Dunaway

Ashley said:
I've created a Windows Service in vb.net that is set up to run automatically,
but it never starts during system startup. I can start it manually, but I
need the service to start without any user interaction. When I originally
installed the service, I had to attempt the start twice as well from the
Service Manager. So, for some odd reason, it has to be told twice to start.

I get the following errors in the System log at startup:

Timeout (30000 milliseconds) waiting for the LU/LW Mail Service service to
connect.

- and -

The LU/LW Mail Service service failed to start due to the following error:
The service did not respond to the start or control request in a timely
fashion.

I'm not sure what's causing the service to time out like that, and I don't
know where to start looking to fix it.

Any ideas?

Does your service depend on any other services being started first? If
so, you need to set your service up so it knows to wait for those
services.
 
G

Guest

Nope. It's completely stand-alone. I posted my code in reply to Izzy for
reference.
 

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