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? 4 1975
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?
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.
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.
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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the monitoring -
but do I need to somehow involve another thread to allow the service to do
other stuff as well, or is another thread created automatically when the
FileSystemMonitor object is created?
|
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 executable.So while
that executable is running,if I try to stop the windows service while
the executable(MYPROGRAM.EXE) is running,it will wait for a time(about
20 seconds) for the main windows thread to abort.If it does not finish
its work, the...
|
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 goal of the project is to write a
windows service in vb.net that runs on many workstations that can
automatically update itself from a central web server or share (either or
doesn’t matter). I do not want the service to re-install itself each time...
|
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 shouldn't start.
So I've put in some try...catchs, but what I'm not sure how to do is not
allow the service to start. If attempted to start with the NET START
command, throwing an exception keeps the service from starting, but the
message...
|
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 this polling loop is entered
synchronously from OnStart, basically the OnStart event doesn't terminate
for the life of the program. This doesn't give the SCM the correct feedback
that the service has started properly. Consequently, the SCM throws...
| |
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, but
it is unable to start automatically at system restart and following
errors are displayed in the Event Logs.
1 - Timeout (30000 milliseconds) waiting for the (Service Name)
service to connect.
2 - The (Service Name) service failed to start...
|
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 Service, and Event Log tells...
Event Type: Information
Event Source: MsiInstaller
Event Category: None
Event ID: 11707
|
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 boot. All I know is that it is timing
out. But no useful details appear in the event log, not even my first
EventLog message in OnStart. How can I figure out why it isn't starting? How
can I fix this?
My ServiceBase constructor just sets a few...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |