Could not load file or assembly 'MySql.Data.CF,

  • Could not load file or assembly ‘MySql.Data.CF, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, Retargetable=Yes‘ or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047

    • I solved it. The problem is  due to dll problem.

      I copy the dll to bin folder then it works fine with no issue.

      博主的解决办法 先在项目里删除引用MySql.Data.CF ,然后到项目文件夹删除bin下面的 MySql.Data.CF,貌似ASP.NET会自动读取BIN下面的所有DLL,导致冲突并产生报错,打开任何一个页面都报错

Could not load file or assembly 'MySql.Data.CF,

时间: 2024-10-11 10:46:50

Could not load file or assembly 'MySql.Data.CF,的相关文章

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 Fr

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版本的,但是这样一来开发工作似乎就繁琐了许多 如果不区分,

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

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. 试图加载格式不正确的程序.

Could not load file or assembly Microsoft.Data.OData Version=5.2.0.0 error in Azure Cloud Worker Role using Table Storage

解决方法:利用VS2012中Tools->NuGet Package Manage-> Package Manage Console然后输入命令PM> Install-Package Microsoft.Data.OData -Version 5.5.0 然后在Apps应用里加入Microsoft.Data.OData.dll. 最后还要在app.config里加入以下信息: <runtime> <assemblyBinding xmlns="urn:sche

Could not load file or assembly &#39;Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, ...

使用oracle数据库一个多月依赖这问题一直都得不到解决,最近任务不是很忙了,所以决定把这问题解决掉.写一篇文章做记录. 以上错误主要是net程序oracle数据库使用了Microsoft Enterprise Library 5.0 类库访问oracle数据库,其具有优秀的访问不通数据库的能力.使用方法不对也同样出现错误.解决办法是下载http://www.microsoft.com/en-us/download/confirmation.aspx?id=15104最新的类库并安装,安装后到安

[转] ASP.NET WEB API程序在VS启动或发布到IIS后启动后发生 - Could not load file or assembly &#39;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 &#39;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/

错误处理:&quot;Could not load file or assembly &#39;Oracle.DataAccess&#39; or one of its dependencies. An attempt was made to load a program with an incorrect format.&quot;

情况:部署程序在 IIS 7.5 windows server 2008 R2 64 bit OS,引用“Oracle.DataAccess.dll” 运行程序会出现:"Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format." 解决方式:设置IIS  app