一句话回复:关于'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.
由于原先是好的,后來出現這個錯誤,所以系統提示的?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
順便說一下,這個沒有什么特別的,你可以運行admin tool查看系統生成的數據內容
總結
以上是生活随笔為你收集整理的一句话回复:关于'SqlMembershipProvider' requires a database schema compatible with schema version '1'...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 系统初始化程序
- 下一篇: win10 怎么重做系统 如何重新安装W