AspNetSqlMembershipProvider problem

R

Rudy

Although I have set the 'requiresQuestionAndAnswer' to false in the
web.config I still get the error {"The password-answer supplied is
invalid."}

Anyone have a clue?



Button handler:
Dim m As MembershipUser =
Membership.CreateUser(Me.CreateUserWizard1.UserName,
Me.CreateUserWizard1.Password)



Web.config:

<membership>
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<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="false"
applicationName="/"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="6"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
</providers>
</membership>
 
R

rowe_newsgroups

Although I have set the 'requiresQuestionAndAnswer' to false in the
web.config I still get the error {"The password-answer supplied is
invalid."}

Anyone have a clue?

Button handler:
Dim m As MembershipUser =
Membership.CreateUser(Me.CreateUserWizard1.UserName,
Me.CreateUserWizard1.Password)

Web.config:

<membership>
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<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="false"
applicationName="/"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="6"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
</providers>
</membership>

Are you sure you don't have a web.config file in a subfolder that is
overriding these settings? Everything looks fine to me.

Thanks,

Seth Rowe
 
R

Rudy

Are you sure you don't have a web.config file in a subfolder that is
overriding these settings? Everything looks fine to me.

Thanks,

Seth Rowe

Thanks for looking.

Rudy
 
J

Joe

I'm seeing the same behavior. The membership.RequiresQuestionAndAnswer = false in the web.config but if I step through the code in debug, the readonly setting for it always equals true.

I've got my code and markup split into a two separate projects, no web.config or app.config files exist in the code behind project.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top