AspNetMDF架构版本问题 [英] AspNetMDF Schema version problem
问题描述
您好专家,
我已经在自己的数据库中成功创建了aspnetdb.mdf.它在我的本地计算机上可以正常工作,但是当我在生产环境中尝试使用它时,下面是我收到的错误消息,请问我该怎么办!
''/''应用程序中的服务器错误.
"System.Web.Security.SqlMembershipProvider"需要与架构版本"1"兼容的数据库架构.但是,当前的数据库架构与此版本不兼容.您可能需要使用aspnet_regsql.exe(在框架安装目录中提供)安装兼容的架构,或者将提供程序升级到较新的版本.
说明:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪,以获取有关错误及其在代码中起源的详细信息.
异常详细信息:System.Configuration.Provider.ProviderException:"System.Web.Security.SqlMembershipProvider"需要与架构版本"1"兼容的数据库架构.但是,当前的数据库架构与此版本不兼容.您可能需要使用aspnet_regsql.exe(在框架安装目录中提供)安装兼容的架构,或将提供程序升级到较新的版本.
Hello Experts,
I have successfully created aspnetdb.mdf in my own database. It works fine on my local machine but when I tried it on production, below is the error message i got, what do I do Please!!!
Server Error in ''/'' 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 request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.Provider.ProviderException: 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.
推荐答案
修复链接
SqlMembershipProvider需要与架构版本1兼容的数据库架构 ["System.Web.Security.SqlMembershipProvider"需要与架构版本"1"兼容的数据库架构.但是,当前的数据库架构与此版本不兼容.您可能需要使用aspnet_regsql.exe(在框架安装目录中提供)安装兼容的架构,或者将提供程序升级到新版本 [
Fix links
SqlMembershipProvider requires a database schema compatible with schema version 1[^]
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[^]
这篇关于AspNetMDF架构版本问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!