This article is a mirror article of machine translation, please click here to jump to the original article.

View: 28060|Reply: 1

[Source] [A] MySql.Data.MySqlClient.MySqlConnection cannot be cast to [B]MySql.Data.MySqlC...

[Copy link]
Posted on 6/28/2017 3:24:17 PM | | | |
[A] MySql.Data.MySqlClient.MySqlConnection cannot be cast to [B]MySql.Data.MySqlClient.MySqlConnection. Type A derives from "MySql.Data, version=6.9.5.0, culture=neutral, PublicKeyToken=c5687fc88969c44d" (in the context "Default" "C:\Windows\Microsoft.Net\assembly\GAC_MSIL\MySql.Data\v4.0_6.9.5.0___ c5687fc88969c44d\MySql.Data.dll" position). Type B derives from "MySql.Data, version=6.9.9.0, culture=neutral, PublicKeyToken=c5687fc88969c44d" ("C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET in the context "Default" files\root\26ef0788\5e1453c0\assembly\dl3\26589eac\005250ee_82c8d101\MySql.Data.dll").
Description: An unhandled exception occurred during the execution of the current web request. Check the stack trace information for details about the error and where it came from in your code that caused the error.




Solution:

Delete the "MySql.Data.dll under the bin directory of the website"




Previous:ef displays the generated SQL statements
Next:MVC metamodel metadata ViewData.ModelMetadata
Posted on 6/19/2019 4:05:18 PM |
What a bad idea. Deleting the dll will cause the system to not find the specified file
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com