how to change default for requiresQuestionAndAnswer attribute

From: Andrew Law (Law_at_discussions.microsoft.com)
Date: 07/09/04


Date: Fri, 9 Jul 2004 08:14:01 -0700

Whidbey Beta1

I have a simple "CreateUserLogin" contol on my ASPX screen that uses the default AspNetAccessProvider to store users in the Access DataBase.
All works well, but I would like to change the functionality so that it does not require a Question and Answer.

I know that this is a property "requiresQuestionAndAnswer="false"" in the Web.config, but I can't figure out how to change it. If I use the snippet below - I get an error message saying that the provider has already been added.

Does anyone know the proper syntax to change the attribute of the EXISTING AspNetAccessProvider in web.config.

Thanks very much,

<add name="AspNetAccessProvider"
  type="System.Web.Security.AccessMembershipProvider,
  System.Web, Version=1.2.3400.0, Culture=neutral,
  PublicKeyToken=b03f5f7f11d50a3a"

  connectionStringName="AccessFileName"
  enablePasswordRetrieval="false"
  enablePasswordReset="true"

  requiresQuestionAndAnswer="false"

  applicationName="/"
  requiresUniqueEmail="false"
  passwordFormat="Hashed"
  description="Stores and retrieves membership data from
  the local Microsoft Access database file"
/>


Loading