In my application using Asp.net mvc , with Entity Framework 6 , with Mysql , when trying to add the Controllers , Views , using EF , I get the following error:
Myweb.configSettings:
<connectionStrings><addname="MyEntities" connectionString="metadata=res://*/Models.Model.csdl|res://*/Models.Model.ssdl|res://*/Models.Model.msl;provider=MySql.Data.MySqlClient;provider connection string="server=MeuServer;user id=MeuUsuario;password=******;persistsecurityinfo=True;database=MeuDatabase"" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.Entity.EF6"/>
<providers>
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6"/>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
</providers>
</entityFramework>
How can I solve this problem? Thank you.
NOTE
When you try to create a controller without using EF , and add Views manually,