本文介绍了sqlite3的System.DllNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了版本1,1,1的Microsoft.Data.Sqlite Nuget包(因为我不支持visual studio 2015和2.0.0)。在x86和x64中一切正常,但是当我在我的移动设备上部署应用程序时,问题出现了问题b $ b它会引发以下异常

I have installed Microsoft.Data.Sqlite Nuget package of version 1,1,1 (Because i have visual studio 2015 and 2.0.0 is not supported in it). Everything works fine in x86 and x64 but the problem comes for the arm version when i deploy the app th my mobile it throes the following exception

类型'系统的例外。 DllNotFoundException'发生在Microsoft.Data.Sqlite.dll中,但未在用户代码中处理

An exception of type 'System.DllNotFoundException' occurred in Microsoft.Data.Sqlite.dll but was not handled in user code

其他信息:无法加载DLL的'sqlite3':找不到指定的模块。 (来自HRESULT的异常:0x8007007E)

Additional information: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

这是我的堆栈跟踪

   at Microsoft.Data.Sqlite.Interop.NativeMethods.Sqlite3_sqlite3.sqlite3_open_v2(IntPtr filename, Sqlite3Handle& ppDb, Int32 flags, IntPtr vfs)
   at Microsoft.Data.Sqlite.Interop.NativeMethods.Sqlite3_sqlite3.open_v2(IntPtr filename, Sqlite3Handle& ppDb, Int32 flags, IntPtr vfs)
   at Microsoft.Data.Sqlite.Interop.NativeMethods.sqlite3_open_v2(String filename, Sqlite3Handle& ppDb, Int32 flags, String vfs)
   at Microsoft.Data.Sqlite.SqliteConnection.Open()
   at Microsoft.Data.Sqlite.Interop.NativeMethods.OnLoad()
   at Microsoft.Data.Sqlite.Interop.NativeMethods.get_Sqlite3()
   at Microsoft.Data.Sqlite.Interop.NativeMethods.sqlite3_open_v2(String filename, Sqlite3Handle& ppDb, Int32 flags, String vfs)
   at Microsoft.Data.Sqlite.SqliteConnection.Open()
   at MyTodoData.functions..ctor()
   at My_Todo.MainPage..ctor()
   at My_Todo.My_Todo_XamlTypeInfo.XamlTypeInfoProvider.Activate_0_MainPage()
   at My_Todo.My_Todo_XamlTypeInfo.XamlUserType.ActivateInstance()

我的手机正在运行lumia 640 15254.1

My phone is lumia 640 running 15254.1

我试过清理nuget缓存没用。

I have tried cleaning nuget cache no use.

推荐答案

欢迎
到开发通用Windows应用论坛
!请使用  标记 
发布到此论坛时,谢谢!

您似乎已在以下主题中解决了此问题, 

It seems that you have resolved this issue in the following thread, 

https://stackoverflow.com/questions/47883828/system-dllnotfoundexception-for-sqlite3?noredirect=1#comment82814218_47883828

祝你好运,

Breeze


这篇关于sqlite3的System.DllNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 22:45