Windows Service stops working

Howcome if I have a method, where all exceptions are handled, if an exception is thrown, the service just stops working

It still runs, but nothing else gets executed. For example, say I have 3 methods that are called...

method1();
method2();
method3();

If method2() has an exception that is handled, method3() is never called. In fact, it seems the whole service stops executing. A timer is running which calls these methods every 60 seconds.



Answer this question

Windows Service stops working

  • Mister3957

    Hi,

    It might be because there is some unhandled exception in method2(). If you can post the code, then we can help figure out your exception handling code defect.

    Thank you,
    Bhanu.



  • Windows Service stops working