ASP.NET MVC 4, The “WebSecurity.InitializeDatabaseConnection” method can be called only once

后端 未结 5 1635
迷失自我
迷失自我 2020-12-19 07:00

I am developing a code first web app in Visual Studio 2012 Express.

I use this connection string in the web.config:



        
5条回答
  •  北荒
    北荒 (楼主)
    2020-12-19 07:32

    Do you also have the InitializeSimpleMembership attribute on your AccountController class? (this is the default). If so, you are initializing twice.

提交回复
热议问题