Visual Studio抛出异常:DllNotFoundException:无法加载DLL的'sqlite3'

时间:2014-08-22 15:40:11

标签: visual-studio sqlite

当我在Visual Studio中启动Windows Phone 8.1项目时,我在设计器中遇到此错误:

An Exception was thrown.
DllNotFoundException: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
StackTrace
   at SQLite.SQLite3.SetDirectory(UInt32 directoryType, String directoryPath)
   at SQLite.SQLiteConnection..ctor(String databasePath, SQLiteOpenFlags openFlags, Boolean storeDateTimeAsTicks)
   at SQLite.SQLiteConnection..ctor(String databasePath, Boolean storeDateTimeAsTicks)
   at com.example.DataAccess.MainRepository.<GetLanguagesForID>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at com.example.View.UserControls.LanguageItem.<awaitResult>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)
InnerException: None

我已经通过NuGet为Windows Phone 8.1添加了sqlite,但我仍然碰巧遇到此错误。 设计人员应该从数据库中显示一些数据行,而是显示此错误。然而,一旦应用程序在模拟器中运行,它就会显示它们,我该如何解决这个问题?

0 个答案:

没有答案