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

前端 未结 3 1437
情书的邮戳
情书的邮戳 2020-12-13 18:11

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:          


        
相关标签:
3条回答
  • 2020-12-13 18:48

    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:

    • If you are using unmanaged code review exception handling statements while executig it.
    • Make sure you have the latest fixes of .NET4.
      (https://connect.microsoft.com/VisualStudio/Downloads)

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

    0 讨论(0)
  • 2020-12-13 18:59

    The hot-fix has mostly vanished and I faced a similar issue, so I'll share my answer here.

    My solution revolved around the fact that I was passing a Lamda to a P/Invoke:

    https://stackoverflow.com/a/52360307/4700841

    0 讨论(0)
  • 2020-12-13 19:10

    I had a similar problem, so this can help future user to find a solution :

    We use Apache log4net for application log.

    After an update to DLL version 1.2.15, for dotnet Framwork 4.5 it starts to fire this exact exception once the log file reach the maximal size (10MB)

    0 讨论(0)
提交回复
热议问题