473,395 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Windows Service not starting automatically

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
4 1963
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Simon Harvey | last post by:
Hi everyone, I need to make a service that monitors a directory for changes in the files contained within it. I have two questions: 1. I'm going to be using a FileSystemWatcher object to do...
3
by: belgiozen | last post by:
Hi, I have a working windows service,it is looking for files on the disk and when some of the files are cupdated it calls an executable. But it takes a lot of time(about 10 minutes) to run the...
4
by: Blaxer | last post by:
I have read approximately 30 articles now on various methods to make your vb.net application automatically update itself and I can't see how they apply to a vb.net windows services projects. The...
6
by: Joe | last post by:
C# .NET 2.0 I've got a Windows Service that works exactly as I expect it to. However, it does rely on a few Configuration settings. If the customer doesn't configure it correctly, the service...
7
by: Joseph Geretz | last post by:
I have a Service which runs OK, but I'm abviously not starting it properly. In my OnStart event I commence a long running process which polls a database table and performs various processing. Since...
3
by: Maqsood Ahmed | last post by:
I have made a windows service which is configured to start automatically at the system startup under the USER account type. The service is working perfectly fine when I try to start it manually,...
3
by: Mika M | last post by:
I'm programming quite simple Windows Service using C# 2005. I also made setup for it into same solution. When I run setup to install service, it's going fine into C:\Program Files\MyCompany\My...
4
by: =?Utf-8?B?am1hZ2FyYW0=?= | last post by:
I've written a .net Windows service in C#. It works most of the time for most people. It is configured to automatically start when Windows boots. Sometimes it fails to start on Windows XP during...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.