急急急,关于Server Error in '/' Application 的错误,CSDN无类似情况出现

spring27414 2009-04-18 12:50:18
Server Error in '/' Application.
--------------------------------------------------------------------------------

The 'System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider' 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.UI.WebControls.WebParts.SqlPersonalizationProvider' 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.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ProviderException: The 'System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider' 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.]
System.Web.Util.SecUtility.CheckSchemaVersion(ProviderBase provider, SqlConnection connection, String[] features, String version, Int32& schemaVersionCheck) +589
System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider.CheckSchemaVersion(SqlConnection connection) +65
System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider.LoadPersonalizationBlobs(WebPartManager webPartManager, String path, String userName, Byte[]& sharedDataBlob, Byte[]& userDataBlob) +195
System.Web.UI.WebControls.WebParts.PersonalizationProvider.LoadPersonalizationState(WebPartManager webPartManager, Boolean ignoreCurrentUser) +95
System.Web.UI.WebControls.WebParts.WebPartPersonalization.Load() +105
System.Web.UI.WebControls.WebParts.WebPartManager.OnInit(EventArgs e) +497
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Control.InitRecursive(Control namingContainer) +198
System.Web.UI.Control.InitRecursive(Control namingContainer) +198
System.Web.UI.Control.InitRecursive(Control namingContainer) +198
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

我的网站每隔一段时间就会报这个错,我还找不出实质原因,只能靠还原数据库来解决,哪位高手帮忙看看,这到底是什么错位?问题出在哪啊?
...全文
607 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
huxinghuo123 2009-04-22
  • 打赏
  • 举报
回复
转换为2000不就得了,不过比较复杂.....
spring27414 2009-04-22
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 wuyq11 的回复:]
数据库模式版本不匹配
[/Quote]

我用的SQL 2005开发的,服务器上用的2000,真是兼容性的问题吗?有什么解决方法码?
spring27414 2009-04-22
  • 打赏
  • 举报
回复
我按楼上的方法处理过了,而且aspnet_SchemaVersionsNederlands内的数据跟你的一摸一样,问题还是存在,隔一段时间就会报错,而且没有规律可言!
gdjlc 2009-04-18
  • 打赏
  • 举报
回复
关于'SqlMembershipProvider' requires a database schema compatible with schema version '1'

http://www.cnblogs.com/mqingqing123/archive/2009/02/07/885257.html


一个朋友说他建立好asp.net需要的membership-role关系后一直正常,后来运行了脚本,再运行时出现类似如下的错误


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.

由于原先是好的,后来出现这个错误,所以系统提示的 schema (数据库结构)错误是不准确的,甚至是误导读者,根本原因是运行脚本清除了aspnet_SchemaVersions系统初始化的数据
因此,解决方法是在aspnet_SchemaVersions里输入如下数据:
Feature CompatibleSchemaVersion IsCurrentVersion
common 1 1
health monitoring 1 1
membership 1 1
personalization 1 1
profile 1 1
role manager 1 1

wuyq11 2009-04-18
  • 打赏
  • 举报
回复
数据库模式版本不匹配

62,075

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧