Windows Service Hatası !!!
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Windows Service Hatası !!!

  1. #1
    Join Date
    Oct 2010
    Posts
    5

    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

  2. #2
    Join Date
    Dec 2010
    Posts
    2

    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"

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

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center