Within Visual Studio 2010 if you get the error «The invocation of the constructor on type <> that matches the specified binding constraints threw an exception» . You may try the following steps to get more information. First you should know, that the error means there was a runtime error parsing the xaml code. To get the real exception you should activatte the catch of all thrown in exceptions in Visual Studio. Open Debug > Exceptions and activate the checkbox in the «thrown» column for «Common Language Runtime Exceptions». Done so, Visual Studio will halt on all exceptions.
(In my case it was because there were no required resources)
Комментарии: