ASP.NET成员资格错误 [英] ASP.NET Membership Error

查看:90
本文介绍了ASP.NET成员资格错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ASP.NET MVC.我将ASP.NET成员资格表插入数据库中,并且收到以下错误消息.解决办法也许?谢谢.

I'm using ASP.NET MVC. I inserted ASP.NET membership tables into my database and i'm getting the error written below. Solution maybe? Thanks.

"System.Web.Security.SqlMembershipProvider"需要与架构版本"1"兼容的数据库架构.但是,当前的数据库架构与此版本不兼容.您可能需要使用aspnet_regsql.exe(在框架安装目录中提供)安装兼容的架构,或者将提供程序升级到较新的版本.

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.

推荐答案

您是否运行过aspnet_regsql.exe文件?

Did you run the aspnet_regsql.exe file?

C:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_regsql.exe

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe

我已经做过无数次了,但从未出错.尝试这样做.

I've done this countless times and never got that error. Try doing that.

替代文本http://img529.imageshack.us/img529/9678/schema .png

看看

这篇关于ASP.NET成员资格错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆