Click here to Skip to main content
15,944,136 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:

I have installed the windows service on windows server 2003 R2 when i try to start it always i am getting timeout message.

same instance we have installed on windows server 2003 SP1 and windows xp but we didnt face this problem.

even i tried with the compatibility propertie of the service on windows server 2003 R2 but no use. It is having logging feature in both log file as well as event viewer but nothing is logged there.

can any one tell me any special permission required to start the service?
please provide some solution.

Appreciate your help.

1 solution

It's not a permissions problem starting the service.

This depends entirely on how the service was written. If your code in the OnStart event doesn't return control to the service manager within 30 seconds, this timeout error will occur.

In the OnStart event, you would normally kick off a thread that executes the work the service is supposed to perform. If you put your work code in the OnStart event, you've got some rewriting to do to fix this.
Share this answer
fjdiewornncalwe 18-Mar-11 18:55pm    
+5. Sounds Correct.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900