Am 10.08.2012 19:14, schrieb jean.nkengto...@externe.bnpparibas.com:
Hello,
I bet somebody already managed to make this work. Unhappily I can't access
archives.
Here is my problem:
I'm building a Console Application to load and fill one SQLite DB.
We recently decided to switch the application to framework 4.0, from
framework 3.5.
I've downloaded and deployed dll 1.0.81.0 on my application (added to
project's references) from there:
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki.
Now on run, I'm stumbling on 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.
To me it looks like the compiler is trying to load the wrong dll, maybe
from the GAC.
Did you download one of these archives?
- sqlite-netFx40-static-binary-bundle-x64-2010-1.0.81.0.zip
- sqlite-netFx40-static-binary-bundle-Win32-2010-1.0.81.0.zip
Usually I don't use the setup-files as I don't need the Visual Studio
integration. You should be fine unzipping the system.data.sqlite.dll
that fits your system and throw it into your bin-folder and you should
be good to go.
After some copy, replace of dlls, following
http://www.tsjensen.com/blog/post/2011/06/04/SQLite+On+Visual+Studio+2010+Setup+Instructions.aspx
, I still don't get it to work:
Impossible to load metadata resource specified
I saw some threads asking to add "useLegacyV2RuntimeActivationPolicy", but
that doesn't work.
Plus, why should I add this, knowing that version 1.0.81.0 is supposed to
be built in v4.0?
I've never had to mess around with any hacks, nor should you.
If you don't absolutely need the VS-Integration and installed the setup,
you could try uninstalling it.
Bernd
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users