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 6605507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:17:31+00:00 2026-05-25T19:17:31+00:00

i want to ask about ASP.Net Configuration. i have a project that use ASP.Net

  • 0

i want to ask about ASP.Net Configuration. i have a project that use ASP.Net MVC3. and i use membership in my project. in my database server, there’s 2 database for my project.

  1. aspnetdb, contains aspnet_membership, aspnet_user, aspnet_roles, etc (i use asp.net Configuration)
  2. mydatabase, its for my project database.

now my boss told me that he want to host my project in public and told me to use only one database. so i have to move aspnetdb to mydatabase. how can i do it without making new table in mydatabase ?

thanks

  • 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-25T19:17:31+00:00Added an answer on May 25, 2026 at 7:17 pm

    By default the ASP.NET membership provider uses a built-in connectionString named LocalSqlServer which is something like this:

    <add name="LocalSqlServer" 
         connectionString="Data Source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" 
         providerName="System.Data.SqlClient"/>
    

    and when you use the Membership for first time (or when you use the web configuration manager tool), the aspnetdb.mdf will be created automatically. For first step, you can remove this connectionString from web.config by clear command:

      <connectionStrings>
        <clear/>
        <!-- your other connectionStrings -->
      </connectionStrings>
    

    and also, you must change the connectionString for membershipProvider (and also roleProvider if you use it) in web.config file:

    <membership userIsOnlineTimeWindow="20">
      <providers>
        <clear />
        <add
             connectionStringName="YourSpecifiedConnectionString" // your connectionString here
             name="AspNetSqlMembershipProvider" 
             type="System.Web.Security.SqlMembershipProvider" 
             enablePasswordRetrieval="false" 
             enablePasswordReset="true" 
             requiresQuestionAndAnswer="false" 
             requiresUniqueEmail="false" 
             maxInvalidPasswordAttempts="500" 
             minRequiredPasswordLength="1"
             minRequiredNonalphanumericCharacters="0"
             passwordAttemptWindow="10"
             applicationName="/" />
      </providers>
    </membership>
    
    <roleManager enabled="true">
      <providers>
        <clear/>
        <add connectionStringName="YourSpecifiedConnectionString" // your connectionString here
             name="AspNetSqlRoleProvider"  
             applicationName="/" 
             type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
      </providers>
    </roleManager>
    

    For configure the database to use ASP.NET built-in membership provider, you can use regsql tool
    which can be founded here:

    C:\Windows\Microsoft.NET\Framework\(version that you are using. mine is v4.0.30319)\
    

    In this folder, find the aspnet_regsql.exe file and run it. A helpful wizard will be shown and
    help you step by step to configure new database. And about your final issue: You haven’t to apply any change
    to your edmx file! The EF works with tables you supplied to it, and membershipProvider do its job with
    tables that ASP.NET supplied to it! Well done, Good job!

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

Sidebar

Related Questions

i want to ask a question about how to do paging in ASP.net coding
hihi i have a question that i want to ask about c# and window
Is there any tool that will inspect either asp.net or sql server and report
i want ask some question about asp.net mvc Is static constructor will init every
I only want facts as far as possible. There are some things that ASP.Net
I want to ask about an edge-case scenario that I understand is very poor
i just want to ask about my html code here, i have a bit
Yes, as you might guess, I want to ask about Cloud-computing. I doubt that
I want to ask about software design. I have a task, the view controller
I'm going to use the membership system in ASP.net, but need to change it

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.