SQLite: Difference between revisions

From Yggenyk
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
</source>
</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.'''
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.'''
[http://msdn.microsoft.com/en-us/library/bbx34a2h(VS.100).aspx Specifies whether to enable the .NET Framework version 2.0 runtime activation policy or to use the .NET Framework version 4 activation policy]


* [http://www.exendo.se/articles/software-development-tools-for-simple-local-file-versioning/the-best-database-for-desktop-applications The best database for desktop applications - Exendo - Articles on software development]
* [http://www.exendo.se/articles/software-development-tools-for-simple-local-file-versioning/the-best-database-for-desktop-applications The best database for desktop applications - Exendo - Articles on software development]


<google>ENGELSK</google>
<google>ENGELSK</google>

Revision as of 12:35, 21 July 2010

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