473,671 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Service did not start in a timely fashion...

I developed a Windows Service application written in vb.net and have
successfully installed it on many workstations (over 25 PCs). All
workstations have Windows XP SP2 installed. There are two workstations
located at separate customers that have an issue during installation. I
receive the error “The service did not respond to the start or control
request in a timely fashion.” The service properties Log On is set to use
the Local System account, could there be an issue with some permissions
rights here?
Jun 11 '07 #1
2 9455
On Jun 11, 4:57 pm, John S. <John S...@discussion s.microsoft.com >
wrote:
I developed a Windows Service application written in vb.net and have
successfully installed it on many workstations (over 25 PCs). All
workstations have Windows XP SP2 installed. There are two workstations
located at separate customers that have an issue during installation. I
receive the error "The service did not respond to the start or control
request in a timely fashion." The service properties Log On is set to use
the Local System account, could there be an issue with some permissions
rights here?
Without seeing the code - my guess is that you are doing to much in
the OnStart method. I would limit this method to simply starting a
thread on which you actually do your login and your service work. The
problem is that if your onstart method takes to long to complete,
windows will kill it.

--
Tom Shelton

Jun 12 '07 #2

"John S." <John S.@discussions. microsoft.comwr ote in message
news:4E******** *************** ***********@mic rosoft.com...
>I developed a Windows Service application written in vb.net and have
successfully installed it on many workstations (over 25 PCs). All
workstations have Windows XP SP2 installed. There are two workstations
located at separate customers that have an issue during installation. I
receive the error “The service did not respond to the start or control
request in a timely fashion.” The service properties Log On is set to use
the Local System account, could there be an issue with some permissions
rights here?
The only time I have seen that happen, and I have forced it to happen as
well during the start-up of a .NET Service application, is an exception is
being thrown, which is causing the Start-up to time out.

You should review your code on the Onstart event to see what is happening.
One way I have done things to pin point it is dump messages into the event
log to see where the program was at when it went down on the start-up.

Another way I have done it to see where it was at in the Service program was
using the NET Send command sending messages locally to the machine, nothing
like those pop-up NET Send (OK Message boxes) to track things down.

Jun 12 '07 #3

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

Similar topics

3
5133
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...
5
14119
by: Richard Steele | last post by:
I have created a WinForm application that needs to be run as a windows service (the PC is inaccesible by any user) i have successfully installed the application as a windows service. When i start the service, i get the following error Error 1053: The service did not respond to the start or control request in a timely fashion 1. Is there anyway to extend the timeout period.? I use timed threads to load a serial device driver and this...
5
4265
by: vinoth | last post by:
Hi, I have created WindowsService Project.In that Project OnStart Method i have written the following Code. In this code the Server is waiting for the connection from client. When the Client connects to the Server, the server will process and send result to the client.(This is Client Server Application. The Server side Code is implementd in th OnStart method Of Windows Service). When i tried the Client Server Application in Console...
3
2495
by: mpriem | last post by:
Hi, I am developing my very first Windows Service. I want to query AD every 5 minutes to generate a Report which I will use in a website. I use the following testcode, but the service won't start in a timely fashion. What am I doing wrong? using System; using System.IO;
2
2176
by: Scewbedew | last post by:
Being a newbie on C# managed services, I've probably done something horribly wrong here... The intent is to create a windows service that runs under the SYSTEM account. I have created a service according to available examples in MSDN, and I have used the Installutil.exe to install the service on my PC. The OnStart method is still completely empty, I'd like to get the base running before I start to build the solution.
4
1978
by: Ashley Bryant | last post by:
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: ...
10
7531
by: archana | last post by:
Hi all, I am having one windows service which is updating to database. On 'Onstop i want to wait till current updation complete. How will i do this? Because if i write some lengthy code on onstop it fails to stop and status remain 'stopping' Later i can't do anything on that service even i can't uninstall that service.
9
3470
by: Yasir Zaheer | 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...
4
9689
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...
0
8393
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
8914
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
8820
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
8670
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...
0
5695
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();...
0
4224
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...
0
4406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2810
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
2
1809
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.