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
|