Server error in "/" application.
Configuration error
Description: An error occurred while processing the configuration file required to service the request. Please check the specific error details below and modify the configuration file as appropriate.
Parser error message: Failed to load file or assembly "Mysql.web, version=6.7.4.0, culture=neutral, publickeytoken=c5687fc88969c44d" or one of its dependencies. The system cannot find the file specified.
SOURCE Error:
Line 263: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line: <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 265: <add name="MySQLRoleProvider" type="MySql.Web.Security.MySQLRoleProvider, MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" applicationName="/" />
Line 266: </providers>
Line 267:</roleManager>
Source file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config line: 265
Personal speculation: Probably because the rolemanager function was opened in Web. config, but did not define provider, and the provider defined in Machine.config is not valid, so it goes through the last provider, that is, 265 rows.
Workaround: Define a valid provider in Web. config
<rolemanagerdefaultprovider= "sqlprovider"enabled="true" cacheRolesInCookie="true" > <providers> <clear /> <add name="SQLProvider"type="System.Web.Security.SqlRoleProvider "connectionstringname="lessonraauthorization " /> </providers> </rolemanager>
Which connectionStringName
is the name of a custom link string.
Failed to load file or assembly "Mysql.web, version=6.7.4.0, culture=neutral, publickeytoken=c5687fc88969c44d" or one of its dependencies. System