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

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

问题描述

我完全不知所措 - 我遇到了一些我什至不明白的超级奇怪的问题......我正在运行实体框架 4.1、MySql 5.xx 并且我的 MySql 连接器是 v 6.4.4- 一切都在本地运行良好,但是每当我上传到我收到的服务器时:

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].

我很困惑,我很确定我的 Bin 目录中有 MySql 6.4.4 dll,而且我的 Web.config 对版本​​ 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!

我很迷茫,无处可去.我非常感谢您对此提供任何指导,在此先感谢您.

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

推荐答案

您必须将提供程序库添加到 Web 应用程序中的 bin 目录和 在您的 web.config 中注册提供程序

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

然后你必须下载连接器 .Net Mono 在这里.

Then You must download Connector .Net Mono here.

然后将 Dll 放入 bin 文件夹中.

And put Dlls into bin folder.

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

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