问题描述
我工作的Windows窗体应用程序。当我运行在Windows 8(VS2012)的应用程序,该应用程序运行高达程度,然后崩溃,给人异常{无法加载DLL sqlite3的:指定的模块找不到。 (从HRESULT异常:0x8007007E)。}
I am working on a windows forms application. when I run the application on windows 8 (VS2012), the application runs upto an extent and then crashes, giving the exception "{"Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}".
我不能包括在参考文献中sqlite3的DLL。当我尝试将其添加和更改复制本地属性为True,我无法做到这一点的,每当我构建解决方案,这个属性被自动更改为False。此外,当我试图通过释放\ x64文件夹添加sqlite3的,我得到一个错误,该文件是不可访问。好心帮我解决这个问题!
I am unable to include sqlite3 dll in the references. when I try adding it and change the Copy Local attribute to True, I am unable to do it as whenever I build the solution, this attribute gets changed to False automatically.also when I try adding SQLite3 through the release\x64 folder, I get an error that the file is not accessible.kindly help me fix this issue!!
推荐答案
添加64位(64位)版本sqlite3.dll到包含可执行文件的文件夹。确保你畅通的文件。您可以通过右键单击在Windows资源管理器解锁。在常规选项卡的右下角,你会看到一个解除阻止按钮。
Add the x64 (64 bit) version of sqlite3.dll to the folder that contains your executable file.
Make sure you unblocked the file. You can unblock it by right-clicking on it in the Windows Explorer. In the lower right corner of the General tab you should see an "Unblock" button.
您不能添加它作为参考,因为它不是一个.NET程序集。
You can't add it as a reference, because it isn't a .NET assembly.
这篇关于{"无法加载DLL'sqlite3的“:指定的模块找不到。 (从HRESULT异常:0x8007007E)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!