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

后端 未结 12 1680
隐瞒了意图╮
隐瞒了意图╮ 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 09:59

    I had a similar problem and I was able to solved it adding the default value to table aspnet_SchemaVersions. This default values were not added to the DB generated using Tasks -> Generate Scripts.

    Here a useful post

    INSERT INTO dbo.aspnet_SchemaVersions 
    VALUES
    ('common', 1, 1),
    ('membership', 1, 1),
    ('role manager', 1, 1);
    GO
    

提交回复
热议问题