简体   繁体   English

无法加载文件或程序集 'MySql.Data, Version=8.0.29.0.. 找到的程序集的清单定义与程序集引用不匹配

[英]Could not load file or assembly 'MySql.Data, Version=8.0.29.0.. The located assembly's manifest definition does not match the assembly reference

I can't launch my C# project.我无法启动我的 C# 项目。

Unhandled exception.未处理的异常。 System.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=8.0.29.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'. System.IO.FileLoadException:无法加载文件或程序集“MySql.Data,版本=8.0.29.0,文化=中性,PublicKeyToken=c5687fc88969c44d”。 The located assembly's manifest definition does not match the assembly reference.找到的程序集的清单定义与程序集引用不匹配。 (0x80131040) File name: 'MySql.Data, Version=8.0.29.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' at MySQL_namespace.SQLWork.Initialize(String server_name, String _port, String database_name, String user, String pass) ... (0x80131040) MySQL_namespace.SQLWork.Initialize(String server_name, String_port, String database_name, String user, String pass) 处的文件名:'MySql.Data, Version=8.0.29.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' ...

It used to work before long time ago.很久以前它曾经工作过。 Now, after I had issues with MySQL connection I have updated MySQL connector nuget.现在,在我遇到 MySQL 连接问题后,我更新了 MySQL 连接器 nuget。 After that I also rebuilt it using .Net 5.0.之后,我还使用 .Net 5.0 对其进行了重建。 Can't launch it now as it returns above error.现在无法启动它,因为它返回上述错误。

You can try as follows:您可以尝试如下:

  1. After deleting the original nuget.删除原始nuget后。
  2. Clean the project.清理项目。
  3. Reinstall the new nuget.重新安装新的 nuget。
  4. Rebuild the project.重建项目。

您是否确保将其复制到输出目录?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows Universal App:无法加载文件或程序集-找到的程序集的清单定义与程序集引用不匹配 - Windows Universal App: Could not load file or assembly - The located assembly's manifest definition does not match the assembly reference 无法加载文件或程序集:找到的程序集的清单定义与程序集引用不匹配 - Could not load file or assembly: The located assembly's manifest definition does not match the assembly reference 无法加载文件或程序集。 定位的程序集的清单定义与程序集引用不匹配 - Could not load file or assembly. The located assembly's manifest definition does not match the assembly reference 无法加载文件或程序集XXX或其依赖项之一。 找到的程序集的清单定义与程序集引用不匹配 - Could not load file or assembly XXX or one of its dependencies. The located assembly's manifest definition does not match the assembly reference 无法加载文件或程序集“WebGrease”的依赖项之一。 定位的程序集的清单定义与程序集引用不匹配 - Could not load file or assembly 'WebGrease' one of its dependencies. The located assembly's manifest definition does not match the assembly reference 无法加载文件或程序集或其依赖项之一。 找到的程序集的清单定义与程序集引用不匹配 - Could not load file or assembly or one of its dependencies. The located assembly's manifest definition does not match the assembly reference “定位的程序集的清单定义与程序集引用不匹配” - “The located assembly's manifest definition does not match the assembly reference” 找到的程序集的清单定义与程序集引用不匹配 - The located assembly's manifest definition does not match the assembly reference 无法加载文件或程序集“System.Web.Mvc”或其依赖项之一。 定位的程序集的清单定义与程序集不匹配 - Could not load file or assembly 'System.Web.Mvc' or one of its dependencies. The located assembly's manifest definition does not match the assembly 安装新版本后,“定位的程序集的清单定义与程序集引用不匹配” - “The located assembly's manifest definition does not match the assembly reference” after installing new version
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM