[英]Could not load file or assembly 'MySql.Data' the parameter is incorrect
I keep getting this exception when I start my program. 启动程序时,我不断收到此异常。
System.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=8.0.13.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'. The parameter is incorrect.
Somewhere I read it could be caused by a corrupted package: I have tried to reinstall the NuGet package, but it's still not working. 在我读过的某个地方,它可能是由损坏的软件包引起的:我试图重新安装NuGet软件包,但仍无法正常工作。
NOTE: I'm not using Visual Studio, I'm coding a .NET Core class library using Jetbrains Riders on a Linux computer. 注意:我不使用Visual Studio,而是在Linux计算机上使用Jetbrains Riders编写.NET Core类库。
Try using an older version of MySql. 尝试使用旧版本的MySql。 Use the NuGet-Manager and download version 6.8.8 of MySql.Data, always worked for me.
使用NuGet-Manager并下载适用于我的MySql.Data版本6.8.8。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.