none
Windows service writing error message in event log but started normally ? RRS feed

  • Question

  • Hi , 

    I am facing a problem . I have written a service which start the other services in our project. I am facing no problem when I am starting the service when the system is up. But when I am restarting the machine the following error message come in the event log:;

    the service "Name_of_Service" terminated with the following error: unknown error.

    But the service is running normally when I checked in the service manager . Any suggestion will be help full. 

    Thursday, December 20, 2012 11:49 AM

All replies

  • Hi Piyush349,

    This forum is focused on Microsoft Parallel Computing Technologies like Parallel Pattern Library (PPL) or C++ AMP, we are not the experts in writing Windows Service Components, so my advice would be to ask on different forum, or general Microsoft community forum: http://answers.microsoft.com

    My wild guess to your question would be that your service is not responding properly to stop and/or shutdown requests. This will explain why you see a failure during shutdown and why your service works fine during start up. Perhaps understanding service state transitions would help you: http://msdn.microsoft.com/en-us/library/ee126211(v=vs.85).aspx

    Best regards,


    Szymon

    Thursday, December 20, 2012 6:50 PM