我有一个在Windows中的Visual Studio中创建的.NET Core应用程序。
我已经使用Visual Studio中的发布设法将应用程序部署到Rasbian和Windows。但是,我正在努力使数据库正常工作。
我对数据库非常缺乏经验。我选择sqlite是为了希望它可以在Linux上运行。
这是我得到的错误:
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'SQLite.Interop.dll': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op)
at System.Data.SQLite.SQLite3.StaticIsInitialized()
at System.Data.SQLite.SQLiteLog.Initialize(String className)
at System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework)
at ShareThis.Server.FilesDatabase..ctor(String databaseName) in C:\Users\josef\source\repos\ShareThis\ShareThis\Server\FilesDatabase.cs:line 13
at ShareThis.Server.ShareThis.HandleClient(Object obj) in C:\Users\josef\source\repos\ShareThis\ShareThis\Server\ShareThis.cs:line 256
at System.Threading.Thread.ThreadMain_ParameterizedThreadStart(Object parameter)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
我一直在互联网上搜索试图编译dll的小时,但现在我很茫然。