解决方法
>安装最新的Connector / NET(v
目前6.0.4.0)
>替换默认连接字符串
在web.config中使用类似的东西:
< add name =“ApplicationServices”connectionString =“server = 192.168.1.30; user id = thsuser; Password = thepass; database = thedatabase”providerName =“MySql.Data.MySqlClient”/>
>在web.config中的部分下添加以下内容(至少为6.0.4.0 MysqL连接器),添加
< add autogenerateschema =“true”connectionStringName =“ApplicationServices”
enablePasswordRetrieval =“false”enablePasswordReset =“true”requiresQuestionAndAnswer =“false”
requiresUniqueEmail =“false”passwordFormat =“Hashed”maxInvalidPasswordAttempts =“5”
minrequiredPasswordLength =“6”minrequiredNonalphanumericCharacters =“0”
passwordAttemptWindow =“10”passwordStrengthRegularExpression =“”
applicationName =“/”name =“MysqLMembershipProvider”type =“MysqL.Web.Security.MysqLMembershipProvider,MysqL.Web,Version = 6.0.4.0,Culture = neutral,PublicKeyToken = c5687fc88969c44d”/>
>运行项目,返回Visual Studio并单击解决方案资源管理器上方的ASP.NET配置按钮.