I have a WPF application running with VS2010 .Net3.5 using Nhibernate with FluentNHibernate + SQLite, and all works fine.
Now I want to change to use .Net4, but thi
I also got the same error message when I tried Fluent with .Net4 and SQLite, but when I looked more closely, I found different error message.
Could not load type System.Data.SQLite.SQLiteConnection, System.Data.SQLite. System.IO.FileLoadException: 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.
So what I did is to add useLegacyV2RuntimeActivationPolicy="true" to the "startup" tag like this.
I don't need to add dependentAssembly or anything inside the "runtime" tag. According to this link text and this link text, it should be used for migration aid only. So hopefully, SQLite will be updated soon.
Hope this helps! Karlkim