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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:05:20+00:00 2026-06-15T06:05:20+00:00

I have an MVC 4 application that uses Entity-Framework and SQL Express 2008 ,

  • 0

I have an MVC 4 application that uses Entity-Framework and SQL Express 2008, and i want to use the same database also for membership and roles. my connection string is:

 <add name="AuthTestDbEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.\sqlexpress;initial catalog=AuthTestDb;user id=sa;password=1234;pooling=False;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />

and so i added another connection string for the membership:

<add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=AuthTestDb;user id=sa;password=1234;Integrated Security=True"  providerName="System.Data.SqlClient"/>

and i ran the aspnet_regsql.exe command so it added the necessary tables to my database.

However, if I add a new user using the ASP.NET configuration tool I cannot log in with that user and i can’t find him in my database. If i create a new user using the register action i can log in with it but it creates a new database in my App_Data folder called ASPNETDB.MDF.

What do i need to do so that i’ll be able to use the same DB for my website?

  • 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-06-15T06:05:21+00:00Added an answer on June 15, 2026 at 6:05 am

    An Option: Consider looking at a Custom Membership provider and create only the tables/columns you need to support your own application.

    I am sure there are a lot of examples if you search for Custom Membership provider, here is one: How do I create a custom membership provider for ASP.NET MVC 2?

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

Sidebar

Related Questions

I have an ASP.NET MVC 3 (using Entity Framework 4.2) application that uses transactions
I have built an ASP.NET MVC web application that uses Entity Framework. To provide
We have a web based (ASP.NET MVC) application that uses SQL Server 2008 for
I have an ASP.NET MVC application that uses Linq to SQL repositories for all
I have an ASP.Net MVC application that uses SQL Server 2005 via NHibernate. I
I've got an MVC web application that uses SQL Server 2008 as a back
I have an MVC application that uses data annotations validation. I also have on
I have a web application that uses .NET Framework 4, MVC 4, Ninject 3.
I have an ASP.NET MVC application that uses LINQ2SQL as the database layer. I
I have an azure web application, running MVC 4. It uses the entity framework

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.