Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"The invocation of the constructor on type 'TestWPF.MainWindow' that matches the specified binding constraints threw an exception."- how to fix this?

Tags:

c#

exception

wpf

I'm working with WPF. When I'm trying to declare SQLiteConnection in the code, the problem arises-

The invocation of the constructor on type 'TestWPF.MainWindow' that matches the specified binding constraints threw an exception.  InnerException: Make sure that the file is a valid .NET Framework assembly. 

can anyone tell me, how to fix it?

like image 747
Abdul Ahad Avatar asked Jan 24 '12 12:01

Abdul Ahad


1 Answers

If you click on View Detail... from the exception window you can look at the InnerException. Expand that node and you will see exactly what went wrong.

like image 167
Telos Avatar answered Sep 28 '22 09:09

Telos