UnhandledErrorDetected:未指定的错误COMException

问题描述 投票:22回答:1

挣扎着冻结应用程序的错误,只发生在平板电脑上(从不在我的笔记本电脑上)。似乎与快速切换汉堡菜单有关。我有一个堆栈跟踪,导致第三方控制,但我得到的10次中的9次是以下。只有几个“异步空白”,我无法避免它们(覆盖事件)和其他日志记录,我相信问题出在XAML中(方法是记录进入/退出):

未指定的错误:System.Runtime.InteropServices.COMException(0x80004005):未指定的错误

在Oceaneering.Commons.Utilities.Logger.CoreApplication_UnhandledErrorDetected(Object sender,UnhandledErrorDetectedEventArgs e)上的Windows.ApplicationModel.Core.UnhandledError.Propagate()中出现未指定的错误

设置如下:

CoreApplication.UnhandledErrorDetected += CoreApplication_UnhandledErrorDetected;

接收方法是:

try {               
   e.UnhandledError.Propagate();
}
catch (Exception ex){
   logChannel.LogMessage(string.Format("Unhandled Exception: {0}:{1}", ex.Message, ex.ToString()));
   SaveToFileAsync().Wait();
} 

我可以做些什么来收集更多信息?谢谢!

win-universal-app uwp windows-10-universal windows-10-mobile
1个回答
0
投票

由于作者在问题本身下面的评论中确认,可以使用NuGet更新来解决错误。

检查依赖关系和版本历史:https://www.nuget.org/packages/System.Runtime.InteropServices/

© www.soinside.com 2019 - 2024. All rights reserved.