SQLite

From Yggenyk
Revision as of 12:35, 21 July 2010 by WikiSysop (talk | contribs)
Jump to navigation Jump to search

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

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

</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. Specifies whether to enable the .NET Framework version 2.0 runtime activation policy or to use the .NET Framework version 4 activation policy

<google>ENGELSK</google>

id=siteTree