How do I stop using ASPNETDB.MDF in LocalDB?

后端 未结 4 2025
小鲜肉
小鲜肉 2021-01-12 04:26

I implemented ASP.NET Identity and it automatically created ASPNETDB.MDF and aspnetdb_log.ldf in my App_Data folder. I already have the AspNet tables (i.e., AspNetRoles, Asp

4条回答
  •  囚心锁ツ
    2021-01-12 04:38

    I had the same Problem where the ASPNETDB.MDF was automatically created, even if I use Asp.Net Identity as the main user management.

    I solved it by removing the following line from web.config:

    
    

    This one tells ASP.NET to use the older ASP.NET Membership user management, which is not supported by ASP.NET Identity.

提交回复
热议问题