指定的模块无法找到. (来自HRESULT的异常:0x8007007E) [英] The specified module could not be found. (Exception from HRESULT: 0x8007007E)

查看:146
本文介绍了指定的模块无法找到. (来自HRESULT的异常:0x8007007E)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,现在我在Windows窗体上使用sqlite,但是在运行项目时却显示错误-无法加载DLL sqlite3.指定的模块无法找到. (来自HRESULT的异常:0x8007007E);

我已经添加了system.data.sqlite.dll的dll ...但是它显示了相同的错误...所以请任何人通过给出关于此问题的完美答案来帮助我....在此先感谢

我的连接字符串:

Hi now i am using sqlite for windows forms but while running the project it is showing the error----Unable to load DLL sqlite3. The specified module could not be found. (Exception from HRESULT: 0x8007007E);

i had added the dll of system.data.sqlite.dll...but it is showing the same error...so please any one help me by giving the perfect answer regarding this problem....thanks in advance

MY connection string:

 Private sql_con As New SQLiteConnection
sql_con = New SQLiteConnection(Data Source=D:\iact\Data_Main.sqlite;Version=3;New=False;Compress=True;)
       sql_con.Open()



谢谢
Pallavi



Thanks
Pallavi

推荐答案

您似乎拥有64位版本的Windows.您需要以32位编译您的应用程序,因为它们不是SqlLiteConnect的64位驱动程序.转到项目属性,然后进行编译,并确保平台为(x86).如果已经是x86,则尝试仅使用数据源.我对SQLight不太熟悉,但是如果您改用MySQL,可以为您提供更深入的帮助.
It looks like you have a 64 bit version of windows. You need to compile your application in 32 bit because their are no 64 bit drivers for SqlLiteConnect. Go to your project properties then compile, and make sure the Platform is (x86). If it is already x86 then try just using the data source. I am not very familiar with the SQLight but if you ever change to MySQL I can help you in great depth their.


这篇关于指定的模块无法找到. (来自HRESULT的异常:0x8007007E)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆