473,325 Members | 2,480 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,325 software developers and data experts.

Service does not start after a reboot

We are facing a problem with a Service we developed. It does not start
after a re-boot. We can Start/Stop the service from the interfacing
Application and the Services Control Panel all day long. But it does
not start after a reboot.

Details
We have implemented the Service using CAtlServiceModuleT (ATL 7.0).

For initialization and un-initialization, we have overridden the
PreMessageLoop and the PostMessageLoop. In the initialization we
create the internal COM objects and start a Scheduling engine (A class
with a Thread pool). These are the only two functions we have
overridden
The Error logged in the event viewer is
· Timeout (30000 milliseconds) waiting for the service to
connect.

· The service failed to start due to the following error:

The service did not respond to the start or control request in a
timely fashion.
Nov 16 '05 #1
1 4334
Hi

Under what account is the service running? What's this thread pool? The
Win2k+ one? A custom one? How is it implemented, with QueueUserAPC (possible
COM problems). Why don't you trace in a file and have a look at the service
start up flow...

Cheers,
Stoyan

"Suman" <sb*****@hotmail.com> wrote in message
news:3d**************************@posting.google.c om...
We are facing a problem with a Service we developed. It does not start
after a re-boot. We can Start/Stop the service from the interfacing
Application and the Services Control Panel all day long. But it does
not start after a reboot.

Details
We have implemented the Service using CAtlServiceModuleT (ATL 7.0).

For initialization and un-initialization, we have overridden the
PreMessageLoop and the PostMessageLoop. In the initialization we
create the internal COM objects and start a Scheduling engine (A class
with a Thread pool). These are the only two functions we have
overridden
The Error logged in the event viewer is
· Timeout (30000 milliseconds) waiting for the service to
connect.

· The service failed to start due to the following error:

The service did not respond to the start or control request in a
timely fashion.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tom | last post by:
Hi I've created a windows service and it is set to run under local system account. But after its installed and after reboot when I check in the services its still sitting there and have not...
4
by: Tom | last post by:
Hi I've created a windows service and it is set to run under local system account. But after its installed and after reboot when I check in the services its still sitting there and have not...
29
by: Ken Allen | last post by:
I have a number of services developed in C# (.Net), and they have been working fine for the most part. Recently someone reported that ipon occassion (originally rarely, but more frequently on some...
23
by: Adam Clauss | last post by:
I have a C# Windows Service running as the NetworkService account because it needs to access a network share. As part of the service's initialization, I want the service to terminate, if an...
2
by: Trevor | last post by:
Argh! This problem is driving me nuts! Can you help? In November of 2003, I installed a web service on Windows Server 2003 built in VB.NET for v1.1.4322 of the framework. It contains a timer...
3
by: tshad | last post by:
I created a service in VS 2003 and the code works fine as an application, but not as a service. It installs fine, but when I try to start it, it tells me it was unable to start. Am I missing...
3
by: keepyourstupidspam | last post by:
Hi, I have written a service that can start and stop normally using net start and net stop but when I reboot the machine the serivce does not restart. The code seems to bomb out on the...
12
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
0
by: s.kapitza | last post by:
Hi, try M$S servicebug 3 regards s.kapitza alghaden@alumni.fdu.edu (Ahmad) wrote in message news:<4a75f4b7.0308080649.49105373@posting.google.com>...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.