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

前端 未结 2 1600
栀梦
栀梦 2021-01-13 14:56

Running CorFlags.exe against System.Data.SQLite.dll from http://sqlite.phxsoftware.com/ produces the following output.

Version   : v2.0.50727
CL         


        
相关标签:
2条回答
  • 2021-01-13 15:14

    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/

    0 讨论(0)
  • 2021-01-13 15:36

    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.

    0 讨论(0)
提交回复
热议问题