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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:06:24+00:00 2026-06-10T12:06:24+00:00

What are the required steps to use SimpleMembership (ASP.NET MVC 4) with RavenDB (or

  • 0

What are the required steps to use SimpleMembership (ASP.NET MVC 4) with RavenDB (or other databases) instead of SQL Server?

I am used to override the MembershipProvider but how does it work with the new SimpleMembership?

I saw there is a SimpleMembershipProvider so I think I should override it, but I don’t know if the methods are for storing data purpose only or if they should contain business/validation logic)…

What about configuration? I know the InitializeDatabaseConnection method is normally responsible for initializing the whole shebang, but I don’t think I should call it if I don’t use Entity Framework.

Unfortunately, I did not find a lot of resources about the new SimpleMembership except two links which have not been very useful:

http://igambin.blogspot.ca/2012/08/simplemembershipprovider-huh.html

http://blog.osbornm.com/archive/2010/07/21/using-simplemembership-with-asp.net-webpages.aspx

  • 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-10T12:06:26+00:00Added an answer on June 10, 2026 at 12:06 pm

    So here is what I found after looking at some of the the source code (MVC4).

    http://aspnetwebstack.codeplex.com/SourceControl/changeset/view/553690ac9488#src%2fWebMatrix.WebData%2fExtendedMembershipProvider.cs

    SimpleMembership is an implementation of the abstract class ExtendedMembershipProvider.
    The code inside SimpleMembership is mostly SQL operations and some calls to the underlying (called “previous” in the documentation) MembershipProvider.

    I don’t think it is of any use (in my case) to override SimpleMembership as its implementation is mostly tied to SQL Server. Instead, for what I understand, I should implement ExtendedMembershipProvider. Then, by setting this implementation in the web.config file, the WebSecurity helper would bypass SimpleMembership (default implementation) and call my implementation of the ExtendedMembershipProvider.

    I don’t think I will do this any soon since it looks even more complicated than before (more methods to implement)… but still doable.

    However, all this said, I’m a bit disappointed that we still have to work with the MembershipProvider which, IMHO, is far (a lot of static and internal stuff) from the whole dependency injection thing that we love so much with ASP.Net MVC/WebApi.

    Edit 1

    This question was aked before Jon Galloway wrote this tutorial :
    http://weblogs.asp.net/jgalloway/archive/2012/08/29/simplemembership-membership-providers-universal-providers-and-the-new-asp-net-4-5-web-forms-and-asp-net-mvc-4-templates.aspx

    But my answer stays valid as this (taken from Jon Galloway article) resumes it:

    Note that SimpleMembership still requires some flavor of SQL Server –
    it won’t work with MySQL, NoSQL databases, etc. You can take a look at
    the code in WebMatrix.WebData.dll using a tool like ILSpy if you’d
    like to see why – there are places where SQL Server specific SQL
    statements are being executed, especially when creating and
    initializing tables. It seems like you might be able to work with
    another database if you created the tables separately, but I haven’t
    tried it and it’s not supported at this point.

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

Sidebar

Related Questions

I have my asp.net mvc 3 application with entity framework and i used the
Liferay migration from one server to another help required. Can anyone share there steps
Can someone outline the steps required to get hibernate working with spring mvc. I've
I haven't found a comprehensive list of the steps that are required to use
What are the steps required to use PocketSphinx on Android? I have found various
required( dependency-expression ) They give an example of required: #other:checked but I want my
We use @Constraint.Required to validate the fields of our forms, and this generates a
Actually we are required to use C++ Static Library in PHP, for that we
My team builds reusable libraries for other (internal) software development teams. We use FlexBuilder
I want to use GeoCoder class in my app. I followed the steps as

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.