C# 中有一个控制台应用程序,在 Windows 上一切正常,但需要将此应用程序放在运行 Ubuntu Server 18.04 x86_64 的服务器上。运行该命令后,mono RHBot.exe
显示如下错误:
Unhandled Exception:
System.DllNotFoundException: SQLite.Interop.dll
at (wrapper managed-to-native) System.Data.SQLite.UnsafeNativeMethods:sqlite3_config_none (System.Data.SQLite.SQLiteConfigOpsEnum)
at System.Data.SQLite.SQLite3.StaticIsInitialized () [0x0001c] in <226287aa71b9481b9dd405c36cfaba76>:0
at System.Data.SQLite.SQLiteLog.Initialize (System.String className) [0x00026] in <226287aa71b9481b9dd405c36cfaba76>:0
at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString, System.Boolean parseViaFramework) [0x00046] in <226287aa71b9481b9dd405c36cfaba76>:0
at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString) [0x00000] in <226287aa71b9481b9dd405c36cfaba76>:0
at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteConnection:.ctor (string)
at VKBot.Program.Main (System.String[] args) [0x0006e] in <69f24e52cda4494abdf8dac4c5408e44>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: SQLite.Interop.dll
at (wrapper managed-to-native) System.Data.SQLite.UnsafeNativeMethods:sqlite3_config_none (System.Data.SQLite.SQLiteConfigOpsEnum)
at System.Data.SQLite.SQLite3.StaticIsInitialized () [0x0001c] in <226287aa71b9481b9dd405c36cfaba76>:0
at System.Data.SQLite.SQLiteLog.Initialize (System.String className) [0x00026] in <226287aa71b9481b9dd405c36cfaba76>:0
at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString, System.Boolean parseViaFramework) [0x00046] in <226287aa71b9481b9dd405c36cfaba76>:0
at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString) [0x00000] in <226287aa71b9481b9dd405c36cfaba76>:0
at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteConnection:.ctor (string)
at VKBot.Program.Main (System.String[] args) [0x0006e] in <69f24e52cda4494abdf8dac4c5408e44>:0
虽然它SQLite.Interop.dll
在文件夹x86
和x64
. 该怎么办?
作为一个选项 - 尝试在 dotNet 上运行它,它在 Ubuntu 下可用。