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

后端 未结 15 2200
遥遥无期
遥遥无期 2020-12-03 09:51

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 \         


        
相关标签:
15条回答
  • 2020-12-03 10:42

    I had this error in another part of code which has to do with my application resources.

    This was fixed after explicitly setting the ResourcePath folder in my App.config file

    0 讨论(0)
  • 2020-12-03 10:42

    I had to change the target .Net framework from 4.5.2 to 4.

    0 讨论(0)
  • 2020-12-03 10:43

    I fixed the problem by adding the below content in app.config,

    <configuration> <startup useLegacyV2RuntimeActivationPolicy="true" /> </configuration>
    

    I found this via a community addition by user FCAA below the article " Troubleshooting Exceptions: System.IO.FileLoadException" on MSDN.

    0 讨论(0)
提交回复
热议问题