您的位置:首页 > 博客中心 > 数据库 >

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

时间:2022-03-10 18:04

【问题】



在我本机的开发环境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 :)


可以使用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

热门排行

今日推荐

热门手游