Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6579275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:52:40+00:00 2026-05-25T15:52:40+00:00

I am using the create user wizard of C# asp.net 4. I want to

  • 0

I am using the create user wizard of C# asp.net 4. I want to change its default database (i.e. ASPNETDB.mdf) to my own created database (i.e. test.mdf).

How can I do this? and one more thing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:52:41+00:00Added an answer on May 25, 2026 at 3:52 pm

    2 step required .

    First need to run aspnet_regsql.exe tool which is located in [YouWinDrive]:\Windows\Microsoft.NET\Framework\v2.0.50727 and in this wizard while you target your arbitrary database create necessary objects .

    Step2 : you need to config your asp.net membership provider . as you may know web.config file inherites from Machine.config file which is locatd in [YouWinDrive]:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG

    if you look at that file you will find out Default AspNetSqlMembershipProvider is targeted in sqlserver express and aspnetDB :

        <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>
    

    So you need to override this membership in your web.config file like this :

    <membership defaultProvider="MyMembershipProvider">
                <providers>
                    <add name="MyMembershipProvider"
                         type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
                         connectionStringName="YourConnectionToArbitraryDatabase"
                         enablePasswordRetrieval="true"
                         enablePasswordReset="true"
                         requiresQuestionAndAnswer="true"
                         applicationName="YourAppName"
                         requiresUniqueEmail="false"
                         passwordFormat="Encrypted"
                         maxInvalidPasswordAttempts="5"
                         minRequiredPasswordLength="5"
                         minRequiredNonalphanumericCharacters="0"
                         passwordAttemptWindow="10"
                         passwordStrengthRegularExpression=""/>
                </providers>
            </membership>
    

    and you can change it as you would like .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the default regular expression used by asp.net create user wizard? According to
By default, when you create a local database cache using the wizard provided by
I'm using Asp.net to create a csv file that the user can open directly
I want to allow any user to create a category using a text field.
I am looking for a tutorial how to create my own user interface(like using
So when your using ASP.NET Wizards to create a login, it uses a set
I've currently go a very strange problem. I'm using an asp.net wizard to upload
All, I created a plugin using the create plugin with a view wizard, which
I am using the built-in asp.net membership framework. I created a registration page and
I had done the registration using ASP.NET CreateUserWizard Control . In here I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.