日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

一句话回复:关于'SqlMembershipProvider' requires a database schema compatible with schema version '1'...

發(fā)布時間:2025/5/22 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 一句话回复:关于'SqlMembershipProvider' requires a database schema compatible with schema version '1'... 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
一個朋友說他建立好asp.net需要的membership-role關(guān)系后一直正常,后來運行了腳本,再運行時出現(xiàn)類似如下的錯誤

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)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。