From: CM on
I'm running a C# Windows service which logs to file any exceptions thrown
from any thread. The service consistently terminates unexpectedly after
about 40-50 hours, yet the log file remains empty, but with the below
messages in the event viewer.
How can I prevent my service from terminating unexpectedly?


Event log:

Event ID= 7034
Logged: 1/26/2010 8:31:42 PM
The GenReportsProc service terminated unexpectedly. It has done this 1
time(s).

Event ID = 1000
Logged: 1/26/2010 8:27:46 PM
Faulting application GenReportsProc.exe, version 1.0.0.0, time stamp
0x4b5a26b6, faulting module mscorwks.dll, version 2.0.50727.3068, time
stamp 0x48cf6a1a, exception code 0xc0000005, fault offset
0x000000000017931e, process id 0x%9, application start time 0x%10.

Event ID=1023
Logged: 1/26/2010 8:27:46 PM
..NET Runtime version 2.0.50727.3068 - Fatal Execution Engine Error
(000007FEFA26AF1E) (80131506)


I searched for KB articles and applied KB957542 with no luck. I'm using
..NET 3.5 SP1 on 64-bit Windows Server 2008. Is there another hotfix or any
other information on this issue?

Thanks