I have an application written in .Net Framework 3.5. It is a service which is running on a Windows Server 2003 R2. The application has a global Exception-Handling included an all Exceptions which occure outside a try-catch are catched by this global Exception-Handling (done with AppDomain.UnhandledException).
Anyway it happens that the Application crashs. After the crash I can see a "Application Error" in Event Viewer of Windows. It tells me:
Faulting application name: MyApplication.exe
Faulting module name: KERNELBASE.DLL, version 6.3.9600.18007
Exception code: 0xe06d7363
This code is within frmMain_Load:
AddHandler Application.ThreadException, AddressOf ThreadExceptionHandler
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf UnhandledExceptionHandler
This is the handling of unhandled exceptions:
Private Shared Sub ThreadExceptionHandler(ByVal sender As System.Object, ByVal e As System.Threading.ThreadExceptionEventArgs)
HandleException(e.Exception, False)
End Sub
Private Shared Sub UnhandledExceptionHandler(ByVal sender As System.Object, ByVal e As System.UnhandledExceptionEventArgs)
HandleException(CType(e.ExceptionObject, Exception), e.IsTerminating)
End Sub
Private Shared Sub HandleException(ByVal p_Exception As Exception, ByVal p_Kill As Boolean)
Try
ERROR_LOG.AddFatalError(New Exception("Unbehandelte Ausnahme." & If(p_Kill, " Die Anwendung wird beendet.", ""), p_Exception))
Catch
End Try
If p_Kill Then System.Environment.Exit(-1)
End Sub
Update 1) I inserted uncaught exceptions at different places in my code, but every time the exception gets handled. This is on my development-environment. Maybe, I have to test this on the server.
What problem do I have? How can I analyze this error? Any hints are welcome.
User contributions licensed under CC BY-SA 3.0