Role based authentication in the new MVC 4 Internet template using simplemembership

前端 未结 2 1947
借酒劲吻你
借酒劲吻你 2020-11-27 10:34

I like the new simplemembership feature in MVC 4 internet template with links to OAuth for external logins in VS 2012 RTM. For the most part authentication feature are worki

2条回答
  •  时光说笑
    2020-11-27 11:31

    Had the same problem when I was moving my web app from VS2010/MVC3 to VS2012/MVC4.

    And couldn´t get [InitializeSimpleMembership] to work.

    Found out that adding this to your web.config does the trick:

      
        
      
    

    And everything works fine as it did before.

提交回复
热议问题