Posts

Showing posts from February, 2013

ASP.NET MVC 4 Membership, Users, Passwords, Roles, Profile, Authentication and Authorization

---------------- The easy way: Azure Site Extension to Add/Edit Users and Roles:  http://aaron-hoffman.blogspot.com/2016/08/aspnet-mvc-5-user-admin.html https://www.nuget.org/packages/AspNetUserMaintenanceAzureSiteExtension/ (old:  https://www.siteextensions.net/packages/AspNetUserMaintenanceAzureSiteExtension/ ) ---------------- ---------------- TLDR: Search for this line in your project and update it: WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "UserName", autoCreateTables: true); ---------------- There is a new Membership Provider in ASP.NET MVC 4 that can be used for Membership, Users, Passwords, Roles, Profile, Authentication and Authorization!  It is called the Simple Membership Provider .  It uses the WebMatrix WebData WebSecurity class as a facade. The Old Way You will no longer need to execute the old .NET 2.0 aspnet_regsql.exe like this: C:\Windows\Microsoft.NET\Framewor