没法加载 DLL “SQLite.Interop.DLL”
秦剑 2013-07-07 09:15:56 .net的web程序在VS中运行没有问题,在IIS中报:
C:\快盘\dhcc\程序\采集程序\CodeLog-Lite\DeviceStudio0.3\WebApp\System.DllNotFoundException: 无法加载 DLL“SQLite.Interop.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。 在 System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op) 在 System.Data.SQLite.SQLite3.StaticIsInitialized() 在 System.Data.SQLite.SQLiteLog.Initialize() 在 System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework) 在 EKG.OAICUProcessor.DB.SqlLite.ExcuteSQL(String strSQL, String path) 位置 C:\快盘\dhcc\程序\采集程序\CodeLog-Lite\OP_Prefabricate\EKG.OAICUProcessor\DB\SqlLite.cs:行号 121 在 WebApp.WebPages.DbView.LoadDb(DateTime day, String path) 位置 C:\快盘\dhcc\程序\采集程序\CodeLog-Lite\DeviceStudio0.3\WebApp\WebPages\DbView.aspx.cs:行号 48 在 WebApp.WebPages.DbView.Page_Load(Object sender, EventArgs e) 位置 C:\快盘\dhcc\程序\采集程序\CodeLog-Lite\DeviceStudio0.3\WebApp\WebPages\DbView.aspx.cs:行号 31
目录结构是这样的:
Bin:System.Data.SQLite.dll
x64:SQLite.Interop.dll
x32:SQLite.Interop.dll
web程序使用Any CPU编译