asp.net – 无法加载文件或程序集’MySql.Data,Version = 6.3.6.0
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了asp.net – 无法加载文件或程序集’MySql.Data,Version = 6.3.6.0,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2412字,纯文字阅读大概需要4分钟。
内容图文
![asp.net – 无法加载文件或程序集’MySql.Data,Version = 6.3.6.0](/upload/InfoBanner/zyjiaocheng/892/09447bf3c91c4e0da10e9a6d4d3a58d7.jpg)
我完全失去了 – 我有一些我甚至还不理解的超级奇怪的问题……我正在运行Entity Framework 4.1,MySql 5.xx而我的MySql Connector是v 6.4.4 – 一切正常但是每当我上传到我收到的服务器时,本地都是美丽的:
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也使ZERO引用了6.3.6版本 – 我搜索了整个项目(使用全局查找)6.3. 6,甚至只是为了MySql,看看我是否可以找到任何随机引用这个流氓6.3.6版本,但我什么都没发现!
我很迷茫,没有在哪里.我非常感谢任何关于此的指导,非常感谢提前.
解决方法:
您必须将提供程序库添加到Web应用程序中的bin目录和web.config中的register provider
然后你必须下载连接器.Net Mono here.
并将Dlls放入bin文件夹.
内容总结
以上是互联网集市为您收集整理的asp.net – 无法加载文件或程序集’MySql.Data,Version = 6.3.6.0全部内容,希望文章能够帮你解决asp.net – 无法加载文件或程序集’MySql.Data,Version = 6.3.6.0所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。