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

【问题】



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

时间: 2024-12-22 04:30:10

Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies的相关文章

IIS中发布后出现Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies

[问题]在我本机的开发环境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 Framewo

SQLite 解决:Could not load file or assembly 'System.Data.SQLite ... 试图加载格式不正确的程序(转)

错误提示如下: Could not load file or assembly 'System.Data.SQLite,Version=1.0.66.0,Culture=neutral,PublicKeyToken=db937bc2d44ff139' or one of its dependencies. 试图加载格式不正确的程序 原因: System.Data.SQLite分X64和X86版本. 一般来说,在64位系统上就应该使用X64版本的,但是这样一来开发工作似乎就繁琐了许多 如果不区分,

Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. 试图加载格式不正确的程序。

出现上述问题的原因是,所加载的程序集中有32位的,也有64位的,IIS 7 程序池 在Windows下.Net FrameWork是64位的,要想正确使用,需要对程序池进行配置.如下图所示: Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. 试图加载格式不正确的程序.

[转] ASP.NET WEB API程序在VS启动或发布到IIS后启动后发生 - Could not load file or assembly 'System.Web.Http.WebHost’异常,无法正常访问

Just do Copy Local = true in the properties for the assembly(System.Web.Http.WebHost) and then do a redeploy, it should work fine. http://stackoverflow.com/questions/20323107/could-not-load-file-or-assembly-system-web-http-webhost-after-published-to-

Could not load file or assembly 'System.Core, Version=2.0.5.0 和autofac冲突的问题

在部署到iis的时候会出现这个状况.   这个软件(NDP40-KB2468871-v2-x64) 解决:下载安装这个补丁 http://support.microsoft.com/kb/2468871 http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=3556 http://download.microsoft.com/download/2/B/F/2BF4D7D1-E781-4EE0-9E4F-FDD44A2F8934/

[Nuget] - "Runtime error: Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0'" 问题之解决

环境 项目中使用了 System.Web.WebPages.Razor, Version=3.0.0.0,Nuget 还原缺失包后自动更新至 Version=3.2.5.0,编译成功,运行失败. 错误 "/"应用程序中的服务器错误.未能加载文件或程序集"System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"或它的某一个依赖项.系统找不到

MVC4 部署 could not load file or assembly system.web.http.webhost 或是其它文件出误

自从VS2010发布之后使用它来做开发的程序员越来越多,其中很多人使用了MVC来作为新的开发框架,但是在系统部署的时候我们也遇到诸多问题,因为目前大多数windows服务器采用的还是Windows Server 2003,所以我们就需要在服务器上安装.net framework 3.5 或4.0 之类的高版本来保证我们的系统运行. 接下来我们就来部署基于 .net framework 4.0 mvc 的应用系统,首先在服务器上安装.net framework 4.0,但是安装的时候常常遇到一个错

Could not load file or assembly 'System.Web.Mvc' or one of its dependencies. The located assembly's manifest definition does not

因为用了MVC,在本地是没有问题的,但是部署在服务器就出现了这个问题. 出错界面如下图 原因分析:上面的出错提示最后一句话翻译过来.找到的程序集清单定义与程序集引用不匹配.也就是程序引用的程序集版本和服务器版本是不一致的.比如我的mvc版本是3.0.1的,但运行版本是4.0的.Web服务器只装了mvc3,而没有装mvc4. 而必须保证网站的程序应用池版本与程序集运行版本一致.所以服务器需要安装mvc4.0 解决方法:在网站服务器安装mvc4.0 Could not load file or as

Could not load file or assembly System.Core, Version=2.0.5.0

在 Windows XP SP3 下,未进行更新,安装了 .NET Framework 4.0 环境,运行 WPF 程序时,发现的这个错误. Could not load file or assembly System.Core, Version=2.0.5.0 .... 解决方法:请安装此补丁包 https://support.microsoft.com/zh-cn/kb/2468871