I have searched around, googled a lot and read about similar errors. Also tried various solutions that have been posted here as well as on various forums around the world.
I am getting the following error in event viewer when a .Net based Windows Service crashes:
.NET Runtime version 2.0.50727.5420 - Fatal Execution Engine Error (000007FEF9F5AF0E) (80131506)
Faulting application name: MyWindowsService.exe, version: 18.104.22.168, time stamp: 0x4e5201ae
Faulting module name: mscorwks.dll, version: 2.0.50727.5420, time stamp: 0x4ca2b7e1
Exception code: 0xc0000005
Fault offset: 0x00000000006baa89
Faulting process id: 0x%9
Faulting application start time: 0x%10
Faulting application path: %11
Faulting module path: %12
Report Id: %13
The My Windows Service terminated unexpectedly. It has done this 13 time(s).
The windows Service has been running fine since 2 years. The windows service and its dependencies have not be updated since a couple of months. We have even commented all code within the service so in effect, we are left with just threads and timers that do nothing!
We have not installed any new software on the servers neither performed any maintenance of any sort.
The following references are imported into the windows service.
Imports SearchOption = Microsoft.VisualBasic.FileIO.SearchOption
The Windows Service is compiled using .Net Framework 3.0 and is written in VB.Net. We are using Visual Studio 2010 SP1.
The operating system is Windows Server 2008 R2 x64. .Net Framework 3.5 Sp1 is installed on servers executing the windows service and no updates are installed except KB976902 which i cannot un-install neither via Control panel nor by command line as it says that it cannot be un-installed.
We are facing this problem on a couple of servers and these issues have started popping up in last couple of days. We have even tried deploying an older build of the windows service as well as commenting out the functionality in each thread but to no effect!.
The problem is also occurring where Windows Update was installed and all windows updated were being installed as well as those which had windows update disabled and no other update except KB976902 was installed. We have some servers where this crash is NOT occurring at all and those servers have this update KB976902 installed as well.
We have tried updating .Net framework as well on some of these servers but that does not change anything. All Windows Servers are genuinely licensed and there is no such issue of Administrative privileges problem.