1

I'm trying to use SQLite in my .Net application but it throws an exception and I get this

Additional information: 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.

From here I read the solution that's is changing app.config file, but in my solution folder there is no configuration file, where is that configuration file? what should I change? thanks

Community
  • 1
  • 1
ePezhman
  • 4,010
  • 7
  • 44
  • 80
  • possible duplicate of [What 'additional configuration' is necessary to reference a .NET 2.0 mixed mode assembly in a .NET 4.0 project?](http://stackoverflow.com/questions/2455654/what-additional-configuration-is-necessary-to-reference-a-net-2-0-mixed-mode-a) – Rune FS Aug 01 '11 at 10:49
  • @Rune FS, yes I read that one as well, I have the same problem, my problem is about the file that I'm supposed to modify, I don't which it is and I can't find it. – ePezhman Aug 01 '11 at 11:29
  • in the case of the question "How can I get an app.config file" the answer would be: Right click you're project, choose Add>new item... and then choose "application configuration file" If that's your question I suggest rephrasing this question to make that clear. !) to make it searchable for others with the same problem "Where's my app.config" and to make it "unsearchable" for those looking for the answer to the question linked above – Rune FS Aug 01 '11 at 11:32
  • thanks, that was my problem, I changed the title as well – ePezhman Aug 01 '11 at 11:51

1 Answers1

0

You can add your own app.config file to your project. Right click the project and add new items. Then add the lines that was given in the other link.

Everything Matters
  • 2,672
  • 4
  • 25
  • 42