I am making a web application with ASP.net MVC3. I eventually want to use roleprovider and authentication used by a login form. So I have this code:
For upgrading latest version and solving these kind of issues;
Under Nuget Manager Console run
PM> Install-Package MySql.Web
this will download latest MySql.Web for you. From project references find dll version by looking its properties.
Then,change any other version in your web.config with this new version. This works.
I have been looking for answer and I find the solution that work for me on fix-for-mysql-connectornet-693
You just need to delete ".v20" from every instance of MySql.Web.v20 in
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
and
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
You can edit files in Notepad (Run As Administrator!).
Another solution: