Upgrading to ASP.NET 4.5/MVC 4 forms authentication fails

后端 未结 3 1849
清歌不尽
清歌不尽 2020-12-03 01:41

I\'ve just downoaded a VS 2012 along with ASP.NET 4.5 and MVC 4.0 and was kicking the tires with a sample app and found that the forms authentication that works perfectly wi

3条回答
  •  星月不相逢
    2020-12-03 02:38

    The issue here is that the default mvc4 internet template is using SimpleMembership to manage membership/roles information. The code in the template has assumption of this and can only work with simplemembership. When you install universal providers the account controller code blows up since it cannot understand universal providers. Look at this post which explains further on this scenario 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

提交回复
热议问题