.Net 4.0 Windows Application crashes in clr.dll under Windows Server 2008

Rez.Net picture Rez.Net · Mar 4, 2011 · Viewed 77.2k times · Source

I have a Windows application scheduled to run on a daily basis and fails intermittently due to the following log in EventViewer.

Faulting application name: MyApplication.exe, version: 1.0.0.0, time stamp: 0x4d54829a
Faulting module name: clr.dll, version: 4.0.30319.1, time stamp: 0x4ba21eeb
Exception code: 0xc0000005
Fault offset: 0x00000000000029e1
Faulting process id: 0xbb1c
Faulting application start time: 0x01cbd99223d8b4eb
Faulting application path: E:\MyApplication\MyApplication.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: 7e74ec7e-45a5-11e0-a95d-003048de380d

And in the second EventViewer log it says:

The process was terminated due to an internal error in the .NET Runtime at IP 000007FEF97329E1 (000007FEF9730000) with exit code 80131506.

The server is Win Server 2008 R2 and the application uses .Net 4.0 (as you can see in the error log too).

The application uses multi-threading intensively and reads from a remote database and writes to local hard disk.

Any guess on the cause of this issue and any help how to investigate? I have no idea where it fails in the life of the application which is about 5-10 hours.

Answer

Demir picture Demir · Jul 18, 2011

I'm having the same issue. At approximately 8-10 hours of application life CLR error rises. I suspected my unmanaged code generating exception in the background thread. However I could not really find out why. You can give the following a try however:

Please let me know if you have already found a solution.