UnhandledErrorDetected: Unspecified error COMException

▲
21
▼

Struggling with an error that freezes the app and only occurs on the tablet (never on my laptop). Seems to be related to quickly switching the hamburger menu. I got one stack trace that incriminated a 3rd party control, but 9 of 10 times all I get is the following. There are only a couple of "async void"s where I can't avoid them (overriding events) and from other logging, I believe the issue is in the XAML (methods are logging entry/exit):

Unspecified error : System.Runtime.InteropServices.COMException (0x80004005): Unspecified error

Unspecified error at Windows.ApplicationModel.Core.UnhandledError.Propagate() at Oceaneering.Commons.Utilities.Logger.CoreApplication_UnhandledErrorDetected(Object sender, UnhandledErrorDetectedEventArgs e)

Setting up like this:

CoreApplication.UnhandledErrorDetected += CoreApplication_UnhandledErrorDetected;

And the receiving method is:

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

Anything else I can do to gather more info? Thanks!

win-universal-app
uwp
windows-10-universal
windows-10-mobile
asked on Stack Overflow Jun 12, 2016 by DeannaD • edited Aug 11, 2018 by Manish Patel

1 Answer

▲
0
▼

As the author confirms in a comment below the question itself, the error can be resolved with a NuGet update.

Check dependencies and version history at: https://www.nuget.org/packages/System.Runtime.InteropServices/

answered on Stack Overflow Feb 15, 2019 by Mariana

User contributions licensed under CC BY-SA 3.0