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 \
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
I had to change the target .Net framework from 4.5.2 to 4.
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.