Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies
2015-04-01 19:51
465 查看
【问题】
在我本机的开发环境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/
在我本机的开发环境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
- Could not load file or assembly system.data.sqlite.dll or one for it's depedencies
- SQLite 解决:Could not load file or assembly 'System.Data.SQLite ... 试图加载格式不正确的程序
- SQLite 解决:Could not load file or assembly 'System.Data.SQLite ... 试图加载格式不正确的程序
- Could not load file or assembly ' .dll_newdevelop' or one of its dependencies 解决办法
- Could not load file or assembly 'XXXXXXXX' or one of its dependencies. 试图加载格式不正确的程
- 网站部署 Could not load file or assembly 'XXX' or one of its dependencies. 拒绝访问。
- Could not load file or assembly 'XXX' or one of its dependencies
- Could not load file or assembly '*.dll' or one of its dependencies.
- Could not load file or assembly 'System.Web.Helpers...错误
- Could not load file or assembly 'System.Data.SQLite.dll' or one of its dependencies. 动态链接库(DLL)初始化例程
- Could not load file or assembly 'xxx' or one of its dependencies.
- Could not load file or assembly'System.EnterpriseServices'
- .net framework 4.0 mvc 应用部署 System.Web.Mvc 错误 Could not load file or assembly 'System.Web.Mvc
- Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies.解决方法
- Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made
- Could not load file or assembly 'System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, Public
- could not load file or assembly 'system.web.mvc version=1.0.0.0'
- Could not load file or assembly 'AjaxControlToolkit, Version=3.0.11119.25533, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e'
- SAP3.0相关问题,Could not load file or assembly 'sapnco, Version=3.0.0.42