Today, when you browse an ASP. NET project, you are prompted with the following error:
Could not load file or assembly ' MySql.Web.v20, version=6.9.4.0, culture=neutral, publickeytoken=c5687fc88969c44d ' or one of its dependencies
<providers><add name= "AspNetSqlRoleProvider" connectionstringname= "LocalSqlServer" applicationName= "/" Type= "System.Web.Security.SqlRoleProvider, system.web, version=4.0.0.0, Culture=neutral, publickeytoken= b03f5f7f11d50a3a "/><add name=" AspNetWindowsTokenRoleProvider "applicationname="/"type=" System.Web.Security.WindowsTokenRoleProvider, system.web, version=4.0.0.0, Culture=neutral, publickeytoken= b03f5f7f11d50a3a "/><add name=" Mysqlroleprovider "type=" MySql.Web.Security.MySQLRoleProvider, MYSQL.WEB.V20, version=6.9.4.0, Culture=neutral, publickeytoken=c5687fc88969c44d "connectionstringname=" LocalMySqlServer " Applicationname= "/"/></providers>
<add name= "Mysqlroleprovider" type= "MySql.Web.Security.MySQLRoleProvider, MYSQL.WEB.V20, version=6.9.4.0, Culture=neutral, publickeytoken=c5687fc88969c44d "connectionstringname=" Localmysqlserver "applicationName="/"/ >
The following solutions are found on the Internet and are hereby recorded:
Original:
This error occurs when you install the MySQL. NET Connector 6.9.4 (probably other versions too) because if you don't uncheck "Web Providers" during the installation it writes in your Machine.config which brings your to this error.
When installing Mysql.net 6.9.4 (or other version), if you do not cancel the "Web Providers" option, your Machine.config profile will be modified during the installation process, causing this error to occur. (elementary school English level, translation insufficiency, also please many forgive ^^&)
Control Panel-Add a remove program
Original address: Http://stackoverflow.com/questions/26189699/asp-net-mvc4-configuration-error-after-installing-mysql-connector-net
ASP. MVC4 with Mysql:configuration Error (MYSQL.WEB.V20)