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

  • Home
  • SEARCH
  • 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 47315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:06:13+00:00 2026-05-10T16:06:13+00:00

How do you setup an asp.net sql membership role/membership provider on a production machine?

  • 0

How do you setup an asp.net sql membership role/membership provider on a production machine? I’m trying to setup BlogEngine.NET and all the documentation says to use the ASP.NET Website Administration tool from Visual Studio but that isn’t available on a production machine. Am I the first BlogEngine user to use it on a non-development box?

The SQL server is completely blocked off from everything but the production box, I do have SQL Management Studio on there though.

EDIT: I mean, how do you add new users/roles, not how do you create the tables. I’ve already ran aspnet_regsql to create the schema.

EDIT2: MyWSAT doesn’t work because it requires an initial user in the database as well. I need an application that will allow me to create new users in the membership database without any authentication, just a connection string.

  • 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. 2026-05-10T16:06:13+00:00Added an answer on May 10, 2026 at 4:06 pm

    I solved this problem by setting up a default super user at application start up.

    By adding this to gobal.asax

          void Application_Start(object sender, EventArgs e)      {         // Code that runs on application startup          // check that the minimal security settings are created         Security.SetupSecurity();     }  

    Then in the security class:

      using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts;  ///  /// Creates minimum roles and user for application access. ///  public class Security {     // application roles     public static string[] applicationRoles =          { 'Roles1', 'Roles2', 'Roles3', 'Roles4', 'Roles5' };     // super user     private static string superUser = 'super';     // default password, should be changed on first connection     private static string superUserPassword = 'default';      private Security()     {         //         // TODO: Add constructor logic here         //     }      ///      /// Creates minimal membership environment.     ///      public static void SetupSecurity()     {         SetupRoles();         SetupSuperuser();     }      ///      /// Checks roles, creates missing.     ///      public static void SetupRoles()     {         // create roles         for (int i = 0; i      /// Checks if superuser account is created.     /// Creates the account and assigns it to all roles.     ///      public static void SetupSuperuser()     {         // create super user         MembershipUser user = Membership.GetUser(superUser);         if (user == null)             Membership.CreateUser(superUser, superUserPassword, 'maintenance@acorel.com');          // assign superuser to roles         for (int i = 0; i  

    Once you have a default user, you can use AspNetWSAT or other.

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

Sidebar

Ask A Question

Stats

  • Questions 276k
  • Answers 276k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If your View Models are shared by several Areas, put… May 13, 2026 at 2:53 pm
  • Editorial Team
    Editorial Team added an answer Try this String mess = getResources().getString(R.string.mess_1); UPDATE String string =… May 13, 2026 at 2:53 pm
  • Editorial Team
    Editorial Team added an answer When the Servlet container starts, it: reads web.xml; finds the… May 13, 2026 at 2:53 pm

Related Questions

I am looking for different techniques/tools you use to deploy an ASP.NET web application
I'm going to ask and answer my own question, I hope nobody minds but
I really like the way ASP.NET MVC works. I'd love to implement it on
I would like to learn how setup prefix routing like there is in cakephp

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.