In a WinRT app when switching the debugger type to mixed (from managed), the application fails to start.. pausing the debugger shows execution is at:
static void Main(string[] args)
{
global::Windows.UI.Xaml.Application.Start((p) => new App());
}
The output window continually shows EETypeLoadExceptions as different memory locations:
First-chance exception at 0x757E4B32 in ApplicationName.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0BF7D134.
It looks like the CLR exception is:
CLR:(C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll) Rejecting native image because native image dependency C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll had a different identity than expected
I need to use the Native debugger for SOS Debugging Extension (SOS.dll)
When creating a new blank app and then adding the same dependencies as my app, I don't experience the problem, so its something specific to my app.
Any ideas on what the issue is or how to troubleshoot further? Anyone with experience using SOS Debugging Extension (SOS.dll) with WinRT apps?