4

I've recently been getting back into ASP.NET, and I'm learning all about MVC4 and such. One thing which has been annoying me is the SimpleMembership stuff. It is supposedly there to save you time, a nice little membership system all made for you, but I've had nothing but problems getting it to work.

I'd rather just have my own tables, my own authentication code, my own handlers.

Is this something commonly done though? Do a lot of people use or discard SimpleMembership?

I don't want to become a web developer who has to work with SimpleMembership and can't get it to work, that would be embarrassing, but then on the other hand it seems so cumbersome and fiddly.

All opinions, facts and thoughts appreciated.

Adam K Dean
  • 7,387
  • 10
  • 47
  • 68
  • 2
    Exactly as @DarinDimitrov pointed out, your concern should not be whether it's common (which it is) but does SimpleMembership meet your needs? Would another provider meet your needs better? Or would a custom handler meet your needs best. Choices like these are always tradeoffs of features and development time invested. – Dave Alperovich Feb 02 '13 at 23:37
  • 1
    possible duplicate of [Why should I use ASP.NET Membership security model?](http://stackoverflow.com/questions/440568/why-should-i-use-asp-net-membership-security-model) – Ian Mercer Feb 02 '13 at 23:37

1 Answers1

4

Is this something commonly done though? Do a lot of people use or discard SimpleMembership?

If the SimpleMembershipProvider doesn't fit the specific requirements of your application then it is perfectly fine to roll your own provider and not use the one that's built-in.

Do a lot of people use or discard SimpleMembership?

I can't speak about other people, but personally I decide based on the specific project requirements and whether the SimpleMembershipProvider is something that would fit meet them or whether I should implement a custom provider.

On the other hand ruling out the SimpleMemeberhsipProvider because you don't know how to use it or couldn't make it work, yeah that would be embarrassing. In this case I would recommend you start reading about it in the literature. And of course if you encounter some specific problems with it, don't hesitate to show your code so far and the progress you've made, explaining the precise difficulties you are encountering with it, and people on StackOveflow would be more than willing to help you.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
  • Thanks, what you say is true. I got it working in the end, but it required additional configuration that the default `Internet application` didn't. Strange. In all honesty, it seems a bit bloated and fiddly, rather than something nice and simple. – Adam K Dean Feb 03 '13 at 13:27