大家用 CreateUserWizard控件可能遇到以上问题,
1、更改在web.config文件
<
membership
>
<
providers
>
<
add
name
="AspNetSqlMembershipProvider"
type
="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName
="LocalSqlServer"
enablePasswordRetrieval
="false"
enablePasswordReset
="true"
requiresQuestionAndAnswer
="true"
applicationName
="/"
requiresUniqueEmail
="false"
passwordFormat
="Hashed"
maxInvalidPasswordAttempts
="5"
minRequiredPasswordLength
="7"
minRequiredNonalphanumericCharacters
="1"
passwordAttemptWindow
="10"
passwordStrengthRegularExpression
=""
/>
</
providers
>
</
membership
>
里面有两个属性,一个是 minRequiredPasswordLength,意思是最长密码,默认为7另一个是minRequiredNonalphanumericCharacters,默认为1,意思是至少有一个非字母字符,只要把它改成0就可以了。
如果还是不行就在这里添加一句
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
方法2:不更改config文件,注册时候密码用mailto:~!@#$^&*()_+中的一个试一下,则也可以
问题终于解决了