0x00007FFCF05E675B处的未处理exception(Windows.UI.Xaml.dll)

我已经开发了一个UWP应用程序 ,我已经设法在商店中构建和发布包,没有任何问题。 由于一些用户遇到性能问题,我想通过使用“ .Net Native tool chain ”编译代码来测试我的上一次更改。

但是在构建结束之前我得到了一个exception: 在此处输入图像描述 如果我取消选中“ 使用.NET Native工具链编译 ”的情况,则不再存在问题。

其他构建参数是“ Release ”和“ x64 ”。

你有什么想法吗? 我创建包裹时为什么不遇到此exception?

[编辑] 2017-02-13:什么是新的

我有一些关于这个问题的消息。

首先,Store版本有一个新的“bug”,当通过OnNavigatedFrom()离开页面时似乎会出现这个问题:

protected override void OnNavigatedFrom(NavigationEventArgs e) { ViewModel = this.DataContext as DetailsViewModel; if (!ViewModel.ToChildNavigate) { // Dispose resources this.Resources.Clear(); this.Loaded -= DetailsPage_Loaded; ViewModel = null; } base.OnNavigatedFrom(e); } 

在调试模式下,此代码非常有效…

我还说过,我实际上可以使用“ .Net Native tool chain ”在“ Release ”模式下编译。 但它只有在用户登录后才能工作。

在应用程序发布时,有两种可能性:

  • 在第一次启动时,或者如果没有用户登录,该应用程序将进入“ 登录 ”页面
  • 当用户成功登录时,用户帐户将保存在存储文件中,应用程序将显示在“ 主页 ”页面上

错误消息(“未处理的exception…”)仅在用户成功登录后才会出现,因此使用该文件可能是一种解释。 但由于我不能在“发布”模式下使用断点,我根本不确定……

以下是“输出”窗口的最后几行:

‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ SysWOW64 \ msv1_0.dll’。 跳过加载符号。 模块是本机的,并且当前禁用了本机调试。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ SysWOW64 \ NtlmShared.dll’。 跳过加载符号。 模块是本机的,并且当前禁用了本机调试。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ SysWOW64 \ cryptdll.dll’。 跳过加载符号。 模块是本机的,并且当前禁用了本机调试。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Dyna6164b5c9#\ 2e1e02d5c22607472a9047fbf3c27616 \ System.Dynamic.Runtime.ni.dll’。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Runtcf595564#\ 31f53d6bf5e2b71b24f4ce2030dd28e9 \ System.Runtime.Numerics.ni.dll’。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Numerics \ 5237480aedaa4904c6fd85dae99af471 \ System.Numerics.ni.dll’。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Runteb92aa12#\ 213003369298faf75651a6b8981dce12 \ System.Runtime.Serialization.ni.dll’。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Xml.XDocument \ fa16b0c36bab379f0bf98c050f57b3f6 \ System.Xml.XDocument.ni.dll’。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Xml.Linq \ 6e975e2acfc33e1c706f00bf2942e187 \ System.Xml.Linq.ni.dll’。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Text2f5a8366#\ 25f6a0dc41a72364fd9b2a2ea662ec8e \ System.Text.RegularExpressions.ni.dll’。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Colldfb0b5ae#\ 0b99eb4fa4efaf834ac44e036afc8530 \ System.Collections.Concurrent.ni.dll’。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Linqa402077a#\ 203c9b8ac6a2ed5bc6fd77011eada55c \ System.Linq.Queryable.ni.dll’。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ WinSxS \ x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.14393.447_none_5507ded2cb4f7f4c \ comctl32.dll’。 跳过加载符号。 模块是本机的,并且当前禁用了本机调试。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ SysWOW64 \ ntmarta.dll’。 跳过加载符号。 模块是本机的,并且当前禁用了本机调试。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ SysWOW64 \ Windows.ApplicationModel.dll’。 跳过加载符号。 模块是本机的,并且当前禁用了本机调试。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ assembly \ NativeImages_v4.0.30319_32 \ System.Refl588a0515#\ 1e199ee46bc1cbfe8da8b25cf617bb6e \ System.Reflection.Primitives.ni.dll’。 ‘ComponentAnalysisReport.UWP.exe’(Win32):已加载’C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ diasymreader.dll’。 跳过加载符号。 模块是本机的,并且当前禁用了本机调试。 ComponentAnalysisReport.UWP.exe中0x068F73C8(Windows.UI.Xaml.dll)的未处理exception:0xC000027B:应用程序s’est produite(参数:0x15732DD0,0x00000002)中的exceptionexception。

如何在Visual Studio下的“发布”模式下调试我的应用程序? 为什么Store版本和“Release”版本之间始终存在差异?

问候…