473,842 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 CAtlServiceModu leT (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 4354
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*****@hotmai l.com> wrote in message
news:3d******** *************** ***@posting.goo gle.com...
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 CAtlServiceModu leT (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
1890
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 automatically started ? but next to it the start mode does say 'automatic' instead of manual. so how I get it to start after every reboot ? Thanks
4
4434
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 automatically started ? but next to it the start mode does say 'automatic' instead of manual. so how I get it to start after every reboot ? Thanks
29
3425
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 systems of late), there is an entry in the Event Log immediately after a boot indicating that the service failed to start after 30,000 milliseconds. Usually it starts fine when attempting manually after the boot. I instrumented the code to...
23
7605
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 unrecoverable error occurs. When that case occurs, I create a ServiceController object and call the Stop() method. However - I get an exception thrown saying access denied. If I switch to using the LocalService account it works fine, but I lose...
2
2463
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 (System.Timers.Timer) which has an interval of 24 hours. Actually, it reads a time like 2AM out of the config file, and calculates the time between the start of the service to 2AM, and sets the timer. When the timer expires, it re-reads the...
3
3816
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 something here? Here is the program.
3
3191
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 following line. m_pFileLogAppender = new FileLogAppender(severity, logFile);
12
14544
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 check to see if the status is in stopped or running mode. But that doesn't tell me if it is actually running. I need to know this so that if it happens I can programmatically start the same service on another machine.
0
1484
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
9872
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, 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...
0
9715
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10945
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10612
jinu1996
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...
0
10314
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7858
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7038
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();...
1
4499
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
3
3145
bsmnconsultancy
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...

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.