Breakpoint 已到达断点。我应该如何进一步调查这个问题?

Amp*_*mpo 6 c# wpf .net-4.5

我目前正在开发一个目前正在生产的 WPF 应用程序,我们有两个用户在应用程序启动时崩溃的案例,我仍然无法解释。

已到达应用程序崩溃断点

应用程序显示应用程序的第一个视图并正确显示(因此翻译服务工作,这意味着应用程序似乎已正确初始化,IoC已初始化等...)同时显示错误,单击OK 关闭应用程序。

奇怪的是,这是我们第一次没有在日志文件中记录任何内容的崩溃。我们增加了对事件DispatcherUnhandledExceptionApp.xaml.cs记录未在我们的视图模型层管理异常和记录他们安全地关闭应用程序。活动详情如下:

private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
{
    e.Handled = true;
    if (!isFatalErrorCatched)
    {
        isFatalErrorCatched = true;
        try
        {
            var logger = Mvx.Resolve<ILogManager>().GetLogger(this.GetType());
            logger.Error(e.Exception);
        }
        catch
        {
            // Avoid propagation of exception
        }
#if DEBUG
#pragma warning disable S2228
        Console.Write(e.Exception.Message);
#pragma warning restore S2228
#endif

        MessageBox.Show("Your application encountered a fatal error and cannot continue.", "Application Crash", MessageBoxButton.OK, MessageBoxImage.Error);
        this.Shutdown();
    }
}
Run Code Online (Sandbox Code Playgroud)

请注意,布尔值isFatalErrorCatched只是为了避免多次管理错误。我们Application_StartupApp.xaml.cs

this.DispatcherUnhandledException += App_DispatcherUnhandledException;
Run Code Online (Sandbox Code Playgroud)

我们尝试了很多东西,例如:

  • 修复.NET
  • 修复注册表
  • 比较安装文件夹中的 .dll
  • 查看窗口的事件查看器(那里也看不到任何东西)

以下是有关我们在应用程序中使用的内容的一些附加信息,如果它提供任何附加帮助:

  • MvvmCross 4.2.2
  • .NET 4.5.1

用户使用的是 Windows 10。

我很快将与用户进行远程控制会话,我将能够更深入地查看他的机器。我将尝试使用 ProcDump 来查看我是否可以获得有关此的任何信息。我还将尝试运行另一个 .NET 4.5.1 应用程序,以查看它是否与他安装的 .NET 相关,或者是否与应用程序本身有关。

有没有其他方法可以调查这个问题?

谢谢您的帮助。

最终编辑: - 有问题的两个用户已经格式化了他们的计算机,从那时起就没有再看到这个问题了。