在 ASP.NET 中创建自定义成员资格和个人资料提供程序
我有一个自定义数据库架构,我想将其用于自定义成员资格提供程序。
任何人都可以给出一步一步的过程来执行此操作,因为当我尝试创建类库项目并扩展我的 CustomProvider
时,没有 MembershipProvider
,只有 SqlMembershipProvider
和 ActiveDirectoryMembershipProvider
,即使附加了所有引用。
请帮我解决一下。
I have a custom database schema that I want to use for the Custom Membership Provider.
Can anyone give a step by step procedure to do so because when I tried to create a class library project and extended my CustomProvider
there was no MembershipProvider
, just the SqlMembershipProvider
and the ActiveDirectoryMembershipProvider
, even with all the references attached.
Please help me guys with it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在.net4中,它似乎已被放入
System.Web.ApplicationServices
dll中,即使命名空间是System.Web.Security
,而SqlMembershipProvider仍然位于中系统.Web.安全
。In .net4 it seems to have been put into the
System.Web.ApplicationServices
dll even though the namespace isSystem.Web.Security
while the SqlMembershipProvider still sits inSystem.Web.Security
.自定义会员资格提供程序的创建在此 中进行了解释视频,作者:克里斯·佩尔斯。希望这有帮助。
The custom membership provider creation is explained in this video by chris pels. Hope this helps.