The invocation of the constructor on type X that matches the specified binding constraints threw an exception

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

3 responses to “The invocation of the constructor on type X that matches the specified binding constraints threw an exception”

  1. Thanks) This is exactly what I was looking for)

  2. Unknown Programmer Avatar
    Unknown Programmer

    Thank you! I was really happy when I see it works)

  3. Thank you :D

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.