|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Windows Service not starting automaticallybut 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? We'll need code to help with the problem.
Ashley Bryant wrote: Show quoteHide quote > 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? Sorry I haven't responded yet. Work's a bit hectic at month-end.
http://www.omahanightlife.com/images/Ash/mailservice.zip Show quoteHide quote "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? > > Ashley Bryant wrote:
Show quoteHide quote > I've created a Windows Service in vb.net that is set up to run automatically, Does your service depend on any other services being started first? If> 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? 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. Show quoteHide quote "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. > >
IsNumeric question
How to turn off Managed Debugging Assistant in VB.NET (2005) Access dynamic controls by name? Multiple Component Classes Messages Did Mabry Software Tank! GET SUBNET LOCATION IN VB.NET OT-develing on several machines Replacing Double quotes with TWO Single Quotes Multiple TcpListeners on the same IP address |
|||||||||||||||||||||||