By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,292 Members | 1,706 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,292 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a

"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 discussion thread is closed

Replies have been disabled for this discussion.