Situation
You want to edit a WPF application using Visual Studio.
Problem
Visual Studio throws a XamlParseException that says ‘The invocation of the constructor on type X that matches the specified binding constraints threw an exception’.
Solution
Open the dialog [Debug] – [Exceptions] (CTRL+D, E) and check the ‘Thrown’ checkbox for ‘Common Language Runtime Exceptions’.
Visual Studio will now report the real exception when restarting the debug session.
Sources
Leave a Reply