The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'

后端 未结 12 1657
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 09:26

I have a SQL Server 2008 DB with many tables filled with data and I used SQL Server Management Studio to generate a SQL dump by using the Script Wizard : Tasks -> Generate S

12条回答
  •  遥遥无期
    2020-12-08 10:07

    I tried many of the options above, but none of them seemed to resolve the issue at the time (although they may have helped and I didn't realize it).

    The last step I took [that worked] was granting the SQL user in my connection string access to the aspnet_* roles installed by aspnet_regsql.exe. My SQL user was setup as a db_owner on the database, but wasn't a sysadmin on the box - not sure if that matters.

    As soon as I did that, and after I'd already tried some of the options above, everything worked great.

提交回复
热议问题