473,397 Members | 1,969 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,397 software developers and data experts.

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 9436
On Jun 11, 4:57 pm, John S. <John S...@discussions.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.comwrote in message
news:4E**********************************@microsof t.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
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...
5
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...
5
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...
3
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...
2
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...
4
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...
10
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...
9
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,...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
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 projectplanning, coding, testing,...

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.