asp.net 未能加载文件或程序集“MySql.Web,版本=6.8.3.0

nukf8bse  于 2023-02-10  发布在  .NET
关注(0)|答案(1)|浏览(162)

ASP.NET配置在尝试添加新用户时引发Could not load file or assembly 'MySql.Web, Version=6.8.3.0,0,…

<add name="MySQLMembershipProvider" type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" 
    connectionStringName="LocalMySqlServer" enablePasswordRetrieval="false" 
    enablePasswordReset="true" requiresQuestionAndAnswer="true" 
    applicationName="/" requiresUniqueEmail="false" passwordFormat="Clear" 
    maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10"    
    passwordStrengthRegularExpression="" />
y53ybaqx

y53ybaqx1#

您可以安装/重新安装MySQL连接器或尝试以下步骤:

**1)**转到机器配置。

对于32位操作系统:C:\Windows\Microsoft.NET\框架[版本]\配置\计算机配置
对于64位操作系统:C:\Windows\Microsoft.NET\Framework64 [版本]\配置\计算机配置

**2)**然后删除或注解掉下面这些行:

<add name="MySQLRoleProvider" type="MySql.Web.Security.MySQLRoleProvider, MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" applicationName="/"/>

<add name="MySQLMembershipProvider" type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>

相关问题