0
Reply

.NET Windows Service Error: The service did not respond to the start or control request in a timely fashion.

Deepz

Deepz

Jun 6 2006 7:54 AM
2.8k
Hi All,

        i have a windows based application written in C#,which i transformed to run as a windows service. I created a new windows service project, in which i simply called that EXE using the Process Class, passing some commandline arguments to it. I have set the service startup type to "Automatic", and Logon account to "Local System". I have also set the option: "Allow service to interact with desktop" programmatically in my Windows Service application codeIf i start the service manually, it works well. But if i reboot my computer, the service didn't start automatically and when i check the Event Viewer, I get the following error logged:

The <ServiceName> service failed to start due to the following error:

The service did not respond to the start or control request in a timely fashion.


Any suggestions or help will be greatly appreciated.