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?

1

3 Answers 3

39
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>
</configuration>
Sign up to request clarification or add additional context in comments.

5 Comments

worked after removing"<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>" and adding that.
Where the jeffin' hell do I make this change?
@Hades, in your app.config file.
Funny it's a file that I can't seem to find.
@Hades, it's not there by default, you have to add it. Right click on the project in the solution explorer and choose Add-> New Item... then choose "Application Configuration File"
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:

Comments

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 .

4 Comments

Now you can use nuget to download it.
Sorry for the downvote. In fact your reply was fine. I would have liked some more information however.
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 My bad, there hasn't been until 2010-11-24, 6 months after your question, 9 months before my answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.