CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2010

    Windows Service Hatası !!!


    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

  2. #2
    Join Date
    Dec 2010

    Re: Windows Service Hatası !!!


    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:

    Good luck,
    "Experts in Windows Services"

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.