views:

16

answers:

1

I'm trying to install service which I created in visual studio 2008 on windows server 2003
the problem is that I'm keep getting the following error:

Error 1053: The service did not respond to the start or control request in a timely fashion

all the documentation I read about the issue suggested to install .NET Framework 1.1 Service Pack 1
my currently frame work is 3.5 so I guess it won't solve anything ,is there any solution to the issue ? if there is additional information I need to supply please guide me since I'm new to the server,services world.

A: 

If your service has any ongoing work to do, you should spawn a thread in OnStart and then return. If the service doesn't have ongoing work but may take a while to run, then you need to call RequestAdditionalTime.

The MSDN docs for managed Windows services are a bit lacking; this blog post fills in the details nicely.

Stephen Cleary
thanks !! I run the method in the on strat in a different thread and it worked like magic ;-)
Eran