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

View: 21454|Reply: 0

[Solved] Unable to provide a process for a ADO.NET with the fixed name "MySql.Data.MySqlClient"...

[Copy link]
Posted on 4/28/2018 11:43:34 AM | | |
This post was last edited by QWERTYU on 2018-4-28 11:46

"/" Server error in the application.

Entity Framework provider type "MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, version=6.9.10.0, culture=" registered in the application configuration file cannot be loaded for ADO.NET providers with the fixed name "MySql.Data.MySqlClient" neutral, PublicKeyToken=c5687fc88969c44d”。 Make sure that you use the name of the qualified assembly and that the assembly is available to the running application. For more information, see http://go.microsoft.com/fwlink/?LinkId=260882.
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.

Exception details: System.InvalidOperationException: Unable to load entity framework provider type "MySql.Data.MySqlClient.MySqlProviderServices" registered in the application configuration file for ADO.NET provider with the fixed name "MySql.Data.MySqlClient", MySql.Data.Entity.EF6, Version=6.9.10.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d”。 Make sure that you use the name of the qualified assembly and that the assembly is available to the running application. For more information, see http://go.microsoft.com/fwlink/?LinkId=260882.

Source error:

Line 22: {
Line 23: public ApplicationDbContext() Line 24: : base("DefaultConnection", throwIfV1Schema: false) Line 25: {
Line 26: }

Source file: D:\project\Xld_NationWide\Xld_WebApi\Models\IdentityModels.cs Line: 24

Stack Trace:

Solution:

1: Right-click on the project->Add reference->Browse, and reference all dll files under MySQL Connector Net 6.8.3\Assemblies\v4.5.

2: Add the provider node in the web.config:

<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6"></provider>



VS2015 +EF6 Connect to MYSQL database to generate entities

https://www.itsvse.com/thread-4686-1-1.html








Previous:web api Route property definition
Next:MVC Model custom features
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