UWP App crashes for the first time and not every time Exception thrown at 0x06515AE7 (Windows.UI.Xaml.dll)


mine is huge application so that i cannot share the code of the application i'm getting error while doing clicking or any events in the page i'm not able to trace the exception in any case while adding all exceptions in settings and enabled native debugging getting error as "Exception thrown at 0x06515AE7 (Windows.UI.Xaml.dll) in MingleChat.exe: 0xC0000005: Access violation reading location 0x00000000.

An unhandled win32 exception of vs 2017"


2 Answers



Does any of your Xaml markup include the following setting?


or perhaps any of the other FocusVisual properties being set to null like


We were getting a very similar error message and observing a similar crashing behavior with our UWP application as mentioned in this post.

And that Null setting was the culprit in our case.

answered on Stack Overflow Feb 15, 2019 by HoloSheep

Downgrade your min sdk version to 15xxx.

answered on Stack Overflow Nov 18, 2020 by medex

User contributions licensed under CC BY-SA 3.0