How do I stop using ASPNETDB.MDF in LocalDB?

后端 未结 4 2071
小鲜肉
小鲜肉 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:46

    I don't know if you've figured this out or not but one of the things you can try is: in web.config, connections section, add and then

    Apparently if you don't change/remove the LocalSqlServe will still try to connect to the aspnetdb.mdf.

    You might also think about adding back in the LocalSqlServer and having it point to your SqlExpress or SqlServer.

提交回复
热议问题