相关疑难解决方法(0)

'System.Web.Security.SqlMembershipProvider'需要与架构版本'1'兼容的数据库架构

我有一个SQL Server 2008数据库,其中有许多表填充了数据,我使用SQL Server Management Studio通过脚本向导生成SQL转储:任务 - >生成脚本 - >脚本所选数据库中的所有对象,还选择选项脚本数据.我确保将"Script for Server Version"的值更改为"SQL Server 2008".然后我创建了一个新数据库,并在新数据库上运行SQL转储,以生成旧数据库的相同副本.然后我将默认用户的权限分配给新数据库.然后我更改了ASP.NET应用程序上的连接字符串以使用新数据库.但是当我运行它时,会抛出以下异常 -

            Server Error in '/myapp' Application.
            The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'.  However, the current database schema is not compatible with this version.  You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version.
            Description: An unhandled exception occurred during the execution of the current web …
Run Code Online (Sandbox Code Playgroud)

sql asp.net

56
推荐指数
6
解决办法
4万
查看次数

标签 统计

asp.net ×1

sql ×1