Windows Service Hatası !!!
Hi,
I have done a windows service in c# but I'm having error since I started the service. I have searched for the solution but I couldn't find one yet.
If anyone faced with the same problem please help me.
The error says:
error 1053 the service did not respond to the start or control request in a timely fashion
Thanks in advance
Re: Windows Service Hatası !!!
Hi.
As the message indicates, the Windows Services framework isn't getting the "I have started" message it should receive after it has launched your service. Please ensure that your code sets the SERVICE_RUNNING state, usually from your ServiceBase::OnStart() derived method:
myServiceStatus.currentState = (int)State.SERVICE_RUNNING;
SetServiceStatus(handle, myServiceStatus);
More details here:
http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx
Good luck,
http://www.CoreTechnologies.com
"Experts in Windows Services"
Re: Windows Service Hatası !!!
What are you doing in the OnStart method? If whatever you are doing is a lengthy operation, you might need to break this functionality out into a secondary thread.