Warm tip: This article is reproduced from stackoverflow.com, please click
.net entity-framework mysql mysql.data

Could not load file or assembly 'MySql.Data.EntityFramework, Version=8.0.19.0 or one of its dependen

发布于 2020-03-27 15:46:22

I have just installed the latest version of MySQL.Data.EntityFramework Version 8.0.19.

The first time I run the code I got the following error:

The latest nuget package (MySql.Data 8.0.19) contains an unsigned version of Ubiety.Dns.Core.dll. This results in an exception while loading.

according to: this bug report, I need to install: Ubiety.Dns.Core/ package... so I installed this package. Now I am getting the following exception:

Could not load file or assembly 'MySql.Data.EntityFramework, Version=8.0.19.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.


As a workaround I tried to install the previous version, MySQL.Data.EntityFramework Version 8.0.18 but I cannot find any previous version: MySql.Data.EntityFramework Nuget.

Anyone knows if the previous versions have been removed?

Questioner
Hooman Bahreini
Viewed
127
Wallace B. McClure 2020-01-23 05:08

wow, amazingly, I am having the exact same issue. What I did to resolve:

  • Update all projects to 8.0.19 of the mysql provider.
  • Re-add the db provider tag to my web.config. I had accidently removed it. That was my fault.
  • Finally, I installed the Ubiety.Dns.Core.

Doing all of this resolved my problems.