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.