[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 454
  • Last Modified:

CreateUserWizard: Please enter a different security question

No matter what I select for the security question I continue to get the following Exception - "Please enter a different security question."  Is this a web.config issue or a Wizard issue?  Where should I start to look, in resolving this problem?
0
Robert Treadwell
Asked:
Robert Treadwell
  • 2
  • 2
1 Solution
 
guru_samiCommented:
Are you passing commas "," in your question?
Usually that's what I can think might be giving an error.
Or can you share your web.config membership setting?
0
 
Robert TreadwellAuthor Commented:
No I do not have any commas, in any of my questions.

Per your request, here is my Membership section of web.config.
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
			<providers>
				<remove name="AspNetSqlProvider"/>
				<add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="rmeaspnetdbConnectionString" applicationName="/" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="true" maxInvalidPasswordAttempts="5" passwordFormat="Hashed"/>
			</providers>
		</membership>

Open in new window

0
 
guru_samiCommented:
web.config looks fine. One more question...are you doing something custom when using CreateUserWizard?
0
 
Robert TreadwellAuthor Commented:
In my form I was capturing Security Question using a DropDownList and Hiding Textbox 'Question'.  Added in code behind the selection from DDL field to textbox.
            Dim SecurityQuestionTB As DropDownList = CType(CreateUserWizardStep2.ContentTemplateContainer.FindControl("QuestionDDL"), DropDownList)
            Dim QuestionTB As TextBox = CType(CreateUserWizardStep2.ContentTemplateContainer.FindControl("Question"), TextBox)
            QuestionTB.Text = SecurityQuestionTB.Text

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now