How to debug a C# service that stops for no reason on production server
c#, service
Solution
Is interesting the fact you are sending and receiving faxes: It colud be related to some Session 0 Insolation introduced with windows server 2008/2012, that could cause problem in graphic related services. If you have some chanches to run the server on a developement machine, using a Windows7/8 box and a SYSTEM user, you can probably reproduce the problem.
Problem
We have implemented a pair of services in C# that send and receive faxes. These services have been running flawlessly for several years on several servers - until last week. One of our clients upgraded to Windows Server 2012. We installed the services and all hellbroke loose. Basically, one of the services appears to work for several minutes, and then, for some unknown reason - goes to the OnStop method. So someone, or something - is stopping it, but I don't know what it is. How could I go about debugging this? I am new to C# and this is not my code. Any help would be appreciated.