I need help with an annoying bug that I can't seem to overcome.
In my work I have a large WPF
/C#
program and sometimes when you login there is an exception thrown, a null
reference exception at System.Windows.Data.BindingExpression.IsValidValueForUpdate
.
The exception is only caught in the app.xaml.cs
as a DispatcherUnhandledExceptionEventArgs
and when I look at the data of the exception it contains a key that is an object (not specific object) and the value of the key is null.
How do I even start and find the problem? I read online multiple things and I put some code in comment but still can't find what is wrong. If anyone has advice how to debug this kind of problem it would be much appreciated. Thanks in advance