Failed to load file or assembly "Mysql.web, version=6.7.4.0, culture=neutral, publickeytoken=c5687fc88969c44d" or one of its dependencies. System

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.