WerFault.exe exited with errors on WPF application crash

Jing Xia 1 Reputation point
2022-04-09T22:44:21.573+00:00

We are trying to determine the cause to a crashing issue in our WPF application. Unlike other problems that cause our applications to crash, this specific issue crashes the application without any error reports in Event Logs so we couldn't determine the exact exception that caused the issue. We also couldn't find a way to reproduce the problem because it happens rarely and randomly.

After enabling process termination auditing, we've observed that when the problem happens, our application always exits with 0xCFFFFFFF (Application Hang), followed by WerFault.exe exiting with code 0x80070578 (Invalid Window Handle) or 0x80070005 (Access Denied). We suspect that WerFault exiting with errors is the reason that no error reports have been generated, but have no idea why WER isn't working. It is able to correctly generate error reports for other crashes happened in our application.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,647 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,098 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,109 questions
{count} votes