CorFlags.exe, System.Data.SQLite.dll and BadImageFormatException

徘徊边缘 提交于 2019-12-01 07:48:01

The System.Data.SQLite.dll file you are using is a mixed-mode assembly, which means it is not a pure .NET code (see also the “ILONLY : 0” flag), it contains also unmanaged machine code, which cannot be “Any CPU”. So, as the DLL contains 32-bit native code, it can be loaded only into 32-bit process, otherwise a BadImageFormatException occurs.

Stephen Gennard

If you download the SQLite-1.0.66.0-binaries.zip file from sourceforget.net then this contains a bin/x64 directory with a System.Data.SQLite.dll file which is what you are looking for.

It also has an Itanium directory too..

The URL is:

http://sourceforge.net/projects/sqlite-dotnet2/files/SQLite%20for%20ADO.NET%202.0/1.0.66.0/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!