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

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

    You may have to run aspnet_regsql.exe in order to get your schema values populated. You can hard-code the values as well as long as you have all of the generated objects (tables, views, sproc's, etc..

    The steps i took to resolve this which worked was:

    re-ran aspnet_regsql.exe ensured the default values where there restarted IIS.

    Then it worked..

    But if you just copy the database schema without the values, you need to run 'aspnet_regsql.exe' in order to populate the default values.

    the file can be found here (re: msdn): [drive:]\%windir%\Microsoft.NET\Framework\version (it's in 2.0 dir)

    and here's some info:
    http://msdn.microsoft.com/en-us/library/ms229862%28v=vs.80%29.aspx

提交回复
热议问题