在 Ubuntu 中使用 mono 运行使用数据库连接的 .Net 代码时出错

在 Ubuntu 中使用 mono 运行使用数据库连接的 .Net 代码时出错

我在 Ubuntu 中使用 mono 的 .Net 代码,但是当我进行一些数据库连接时,它显示错误,但在 Windows 中它可以正常工作。

System.TypeLoadException: Could not load type 'System.Data.SQLite.SQLiteConnection' from assembly 'System.Data.SQLite, Version=1.0.58.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'.
  at TestSqlite.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'System.Data.SQLite.SQLiteConnection' from assembly 'System.Data.SQLite, Version=1.0.58.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'.
  at TestSqlite.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 

相关内容