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:
<authentication mode="Forms">
<forms loginUrl="~/Home/Login" timeout="2880" />
</authentication>
<roleManager enabled="true" defaultProvider="MyRoleProvider">
<providers>
<add name="MyRoleProvider"
type="StudentAdministratieProject.Authorisation.CustomRoleProvider"/>
</providers>
</roleManager>
This code is obviously located in my web.config.
The error I get when I start the application:
Can't load file or assembly MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d or one of the dependencies can't be loaded. The system cannot find the given file. ** Note that this is roughly translated from Dutch, the error was originally in Dutch.
Any ideas? Ive Googled a lot but can't find anything which helped me!
I have experienced the same situation and managed to fix the problem with these steps,
Hope this helps! Thanks
I managed to resolve this by running MySQL Installer and updating to the latest files available.
Another solution:
As Beginner to .NET, i also experienced the same situation..
But it can be resolved very simple step.
Select references from solution explorer . Right click on it, Select Add reference, select mysql.web from the list of assemblies, then add it.
After adding mysql.web assembly , you can get rid out from this error.
Thanks!!
Try reinstalling MySQL .NET Connector 6.9.4 while uncheck “Web Providers” during the installation -
See more at: [ASP.NET with MySQL: Configuration Error (MySql.Web.v20)][1] http://technowide.net/2014/11/07/asp-net-with-mysql-configuration-error/
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
and
You can edit files in Notepad (Run As Administrator!).