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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:11:47+00:00 2026-05-24T03:11:47+00:00

Hi I have an aspnetdb in my mvc3 application with an extra table I

  • 0

Hi I have an aspnetdb in my mvc3 application with an extra table I have create to store name and address details. When I register a user my table is being updated but the asp membership tables are not creating the user, additionally when I run the asp.net configuration it is saying that the users Im create exist but they are not in my database so they must be in another even tho this is the only database running on my server.

My config looks like this:

<connectionStrings>
<add name="ApplicationServices"
     connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;
     AttachDBFilename=|DataDirectory|LJM.Models.LJMDB.mdf;User Instance=true"
     providerName="System.Data.SqlClient" />
 </connectionStrings>

<membership>
  <providers>
    <clear/>
    <add name="AspNetSqlMembershipProvider" 
         type="System.Web.Security.SqlMembershipProvider"
         connectionStringName="ApplicationServices"
         enablePasswordRetrieval="false" enablePasswordReset="true"
         requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
         maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" 
         minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
         applicationName="/" />
  </providers>
</membership>

My Register code like this:

MembershipCreateStatus createStatus;
MembershipUser aUser = Membership.CreateUser(model.UserName, 
                                             model.Password, 
                                             model.Email,
                                             null, null, true, null,
                                             out createStatus);

model.uDetails.userid = new Guid(aUser.ProviderUserKey.ToString());
LJMDB aDB = new LJMDB();
aDB.Users.Add(model.uDetails);
aDB.SaveChanges();

if (createStatus == MembershipCreateStatus.Success) {... }

CreateStatus is a Success. I really dont understand why asp in not writing this information to my database when the connection string looks good. Any help on this or how i could find this mystery database would be really appreciated. Thanks 🙂 JM

  • 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-24T03:11:48+00:00Added an answer on May 24, 2026 at 3:11 am

    Ok I did that but got a different error “Cannot open database requested by the login. The login failed. Login failed for user” So I changed the connection string…
    <configuration> <connectionStrings> <add name="ApplicationServices" connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=aspnetdb;Data Source=.\SQLEXPRESS" providerName="System.Data.SqlClient" /> </connectionStrings> and everythings works now, great! and thanks 🙂

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

Sidebar

Related Questions

I already have a User table in my primary application database with an email
salam i have custome create user wizard control having additional properties which is saving
I have created application in mvc3 and I used the default account controller for
I have two different applications using the same aspnetdb database - a WPF application
I need the script to create ASPNETDB.MDF of Forms Authentication. I don't have Management
I have an aspnetdb and I have created another aspnetdb for another website, but
I have a web application that accesses a database through a wcf service. The
I'd like two websites to have read/write access to the same user profile database
I have a web application that uses a local SQL Server Express database (a.k.a.
I have created a WebSite in ASP.Net(Not Mvc. i forgot the other name). After

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.