By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,088 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

Windows Service not starting automatically

P: n/a
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?
Oct 30 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
We'll need code to help with the problem.

Ashley Bryant wrote:
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?
Oct 30 '06 #2

P: n/a
Ashley Bryant wrote:
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.

Oct 30 '06 #3

P: n/a
Nope. It's completely stand-alone. I posted my code in reply to Izzy for
reference.

"Chris Dunaway" wrote:
Ashley Bryant wrote:
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.

Nov 1 '06 #4

P: n/a
Sorry I haven't responded yet. Work's a bit hectic at month-end.

http://www.omahanightlife.com/images...ailservice.zip

"Izzy" wrote:
We'll need code to help with the problem.

Ashley Bryant wrote:
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?

Nov 1 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.