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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:23:06+00:00 2026-05-14T07:23:06+00:00

We use the ASP.NET profile subsystem to associate key-value pairs of information with users.

  • 0

We use the ASP.NET profile subsystem to associate key-value pairs of information with users.

I am implementing functionality for the deletion of users.

I have been using the ProfileManager.DeleteProfile(string userName) method, but I have noticed that this leaves a row in the aspnet_Users table in the aspnetdb database we use to store the profile information.

Clearly, I could manipulate the database directly, but I am reluctant to do so.

What is the best way to ensure all information assocaited with a user is deleted from the aspnetdb?

PS: there is a tantalising Membership.DeleteUser(string userName, bool deleteEverything) method, but this returns a database connection error. A web.config issue?

  • 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-14T07:23:07+00:00Added an answer on May 14, 2026 at 7:23 am

    Add a membership section to web.config, linked to a connection string containing valid credentials (here: “SqlServices”):

       <membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="20">
          <providers>
            <remove name="AspNetSqlProvider" />
            <add name="SqlProvider"
              type="System.Web.Security.SqlMembershipProvider"
              connectionStringName="SqlServices"
              enablePasswordRetrieval="false"
              enablePasswordReset="true"
              requiresQuestionAndAnswer="true"
              passwordFormat="Hashed"
              applicationName="/" />
          </providers>
        </membership>
    

    Ensure the aspnet_SchemaVersions table in the aspnetdb database contains the row:

    membership 1 true
    

    You may then use the membership api (Membership.DeleteUser).

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

Sidebar

Related Questions

I'm currently trying to use ASP.Net Profiles to store additional user information about users
Users have their timezones stored in ASP.NET profiles as strings. I want to use
I'm trying to use ASP.net profiles I've followed some instructions which means I have
I use ASP.NET and have a label control on my page, which I fill
I use ASP.NET and have a Button and a CustomValidator, which has to validate
I use asp.net 4 c# and ef4. I have this code, it should compile
I'm using TableProfileProvider to use ASP.NET profile system in an n-layer architecture. The UI
I just discovered ASP.net uses its own profile system to register users and there
I'm trying to use EQATEC Profiler to profile my ASP.Net app. I followed the
I have an application in Asp.net and using sql server to store user information.

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.