一句话回复:关于'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.
由于原先是好的,后來出現(xiàn)這個錯誤,所以系統(tǒng)提示的?schema (數(shù)據(jù)庫結(jié)構(gòu))錯誤是不準確的,甚至是誤導讀者,根本原因是運行腳本清除了aspnet_SchemaVersions系統(tǒng)初始化的數(shù)據(jù)
? 因此,解決方法是在aspnet_SchemaVersions里輸入如下數(shù)據(jù):
Feature???? CompatibleSchemaVersion?? ?IsCurrentVersion
common?????????????????????????1??????????????????????????1
health??monitoring?????????1?????????????????????????????1
membership?????????????????1?????????????????????????????1
personalization?????????????????1?????????????????????????1
profile?????????????????????????????1?????????????????????????????1
role manager?????????????????1?????????????????????????????????1
順便說一下,這個沒有什么特別的,你可以運行admin tool查看系統(tǒng)生成的數(shù)據(jù)內(nèi)容
總結(jié)
以上是生活随笔為你收集整理的一句话回复:关于'SqlMembershipProvider' requires a database schema compatible with schema version '1'...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 系统初始化程序
- 下一篇: CCIE试验备考之冗余备份VRRP