码迷,mamicode.com
首页 > 数据库 > 详细

Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies

时间:2014-07-17 20:38:48      阅读:309      评论:0      收藏:0      [点我收藏+]

标签:c#   system.data.sqlite.d   

【问题】


在我本机的开发环境c#连接sqlite3没有问题,可是release版本移植到其他的机器就提示Could not load file or assembly‘System.Data.SQLite.dll‘ or one of its depedencies。找不到指定模块。


【解决】

搜来搜去没找到靠谱的答案,其实最后还是自己解决的。

sqlite官方的下载页面里面说了:The Visual C++ 2010 SP1 runtime for x86 and the .NET Framework 4.0 are required.

也就是说,除了要安装.Net Framework 4.0之外,还要安装The Visual C++ 2010 SP1 runtime,这是微软的一个单独补丁包,下载地址:http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=c32f406a-f8fc-4164-b6eb-5328b8578f03

装好该补丁包之后,就一切OK了。 (前提:exe目录下存在‘System.Data.SQLite.dll‘这个dll文件)


( Visual C++ 2010 SP1 runtime :http://www.microsoft.com/en-us/download/details.aspx?id=8328


可以使用SQLite Database Browser来查看数据,下载:
http://sourceforge.net/projects/sqlitebrowser/


Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies,布布扣,bubuko.com

Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies

标签:c#   system.data.sqlite.d   

原文地址:http://blog.csdn.net/zhu2695/article/details/37909031

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!