24

Is there a .Net 4 version of System.Data.SQLite?

At the moment I get this error:

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.

What is the "additional configuration information" that is needed, or alternatively is there another version that I can use?

Justin
  • 84,773
  • 49
  • 224
  • 367
Behrooz
  • 1,696
  • 2
  • 32
  • 54

3 Answers3

38
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>
</configuration>
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
4

According to the forums of PhxSoftware:

It's not high on my priority list right at the moment. When VS2010 comes closer to release I'll be updating the library to work with it.

Although the message was posted in october 2009 there are some workarounds.

Further there seems to be an updated (temporary) version specially for .NET 4:

Rhapsody
  • 6,017
  • 2
  • 31
  • 49
3

Yes, there is now.

http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki

And you can use NuGet to install it as well. With nuget, its easy to choose between x86/x64/both, http://www.nuget.org/packages?q=system.data.sqlite .

deerchao
  • 10,454
  • 9
  • 55
  • 60
  • Now you can use nuget to download it. – deerchao Oct 26 '12 at 02:31
  • Sorry for the downvote. In fact your reply was fine. I would have liked some more information however. – tmighty May 23 '14 at 00:19
  • Hate to break it to you after 4 years, but it is only fitting since you answered after 2 years with 'there has always been', It didn't – Behrooz Jun 30 '15 at 08:07
  • @Behrooz My bad, there hasn't been until [2010-11-24](http://system.data.sqlite.org/index.html/timeline?b=2011-01-31+20:46:59&n=50), 6 months after your question, 9 months before my answer. – deerchao Jul 05 '15 at 20:30