From Yggenyk
Jump to navigation Jump to search

SQLite official homepage

SQLite Tutorials

Optimizing SQLite

Using SQLite with C# .NET

If you are using .NET Framework 4 and System.Data.SQLite you need to add following to yout applications config file. <source lang="xml">

 <startup useLegacyV2RuntimeActivationPolicy="true">
  <supportedRuntime version="v4.0" />   

</source> otherwise you will get an exception: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. Explanation from Microsoft and another explanation can be found here.