Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SimpleMembershipProvider

I was working with the new version of ASP.NET MVC3 and examining the WebSecurity class. I've added System.Web.Webpages as a reference and am able to the use the WebSecurity properties and methods however i'm trying to understand how to configure it inside an ASP.NET page and not one built by WebMatrix. In the Webconfig file, I did notice in the AppSettings section, a new key called enableSimpleMembership with the value set to 'false'. Changing that to 'true' seemed trivial however they must have a SimpleMembershipProvider in the membership\providers section of the Webconfig file. Has anyone seen that or attempted to incorporate SimpleMembership inside an ASP.NET page and does anyone know about adding a SimpleMembershipProvider to the webconfig file? I have referenced this but it didn't seem to have all the information I was looking for.

like image 871
liquidanswer Avatar asked Jan 29 '26 06:01

liquidanswer


1 Answers

You should be able to simply set enableSimpleMembership="true" in appSettings and then remove any reference to a default membership provider such as AspNetSqlMembershipProvider (it will get registered for you).

Just confirmed that it works with an MV3 RC project.

like image 71
anderly Avatar answered Jan 31 '26 22:01

anderly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!