无法加载文件或程序集“MySql.Data,版本= 6.3.6.0 [英] Could not load file or assembly 'MySql.Data, Version=6.3.6.0

查看:810
本文介绍了无法加载文件或程序集“MySql.Data,版本= 6.3.6.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个完全丧失 - 我有什么我还真不明白,甚至......我跑实体框架4.1超奇怪的问题时,MySQL 5.xx的和我的MySQL Connector为v 6.4.4 - 一切正常beatifully但是本地每当我上传到我接收服务器:

I'm at a COMPLETE loss - I'm having super wierd issues with what I still really dont even understand... I'm running Entity Framework 4.1, MySql 5.xx and my MySql Connector is v 6.4.4 - everything works beatifully locally however whenever I upload to the server I receive:

Could not load file or assembly 'MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

Line 48:         /// Initializes a new proventradesEntities object using the connection string found in the 'proventradesEntities' section of the application configuration file.
Line 49:         /// </summary>
Line 50:         public proventradesEntities() : base("name=proventradesEntities", "proventradesEntities")
Line 51:         {
Line 52:             this.ContextOptions.LazyLoadingEnabled = false;


Source File: e:\web\proventrade\htdocs\App_Code\ProvenTrades.Designer.cs    Line: 50

Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

我很困惑,我肯定我有mysql 6.4.4 DLL在我的bin目录中,也有我的Web.config使ZERO引用6.3.6版本 - 我搜索我的整个项目(使用全局查找)为6.3.6,甚至只为MySQL来看看,如果我能找到这个流氓6.3.6版本的任何随机的引用,但我觉得没什么!

I am SO confused, I am positive that I have MySql 6.4.4 dll's in my Bin directory, also my Web.config makes ZERO references to version 6.3.6 - I've searched my entire project (using global find) for 6.3.6 and even just for MySql to see if I can find ANY random references to this rogue 6.3.6 version but I find nothing!

我很失落和我得到任何地方。我将不胜AP preciate这个任何指导,非常感谢在前进。

I'm so lost and am getting no where. I would GREATLY appreciate any guidance on this, thanks so much in advance.

推荐答案

您必须提供程序库在Web应用程序并将其添加到bin目录<一个href=\"http://stackoverflow.com/questions/8705108/mysql-entity-framework-error-the-specified-store-provider-cannot-be-found-in-t/8709768#8709768\">register在你的web.config提供商

You must add provider library to bin directory in your web application and register provider in your web.config

则必须下载连接器<一个href=\"http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-6.5.3-noinstall.zip/from/http://ftp.gwdg.de/pub/misc/mysql/\"相对=nofollow>。单净这里。

和投入的dll进入bin文件夹。

And put Dlls into bin folder.

这篇关于无法加载文件或程序集“MySql.Data,版本= 6.3.6.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆