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

694 Views Asked by At

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

There are 2 best solutions below

1
HoloSheep On

@Harish,

Does any of your Xaml markup include the following setting?

FocusVisualPrimaryBrush="{x:Null}"

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

FocusVisualSecondaryBrush="{x:Null}"

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.

0
medex On

Downgrade your min sdk version to 15xxx.