的MembershipProvider在.NET 4.0中 [英] MembershipProvider in .NET 4.0

查看:256
本文介绍了的MembershipProvider在.NET 4.0中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能的MembershipProvider类添加到我的.NET 4.0的项目在VS 2010中B2?

How can I add the MembershipProvider class to my .NET 4.0 project in VS 2010 B2?

我想自定义的MembershipProvider,但我不能没有加入这一类。请指导我通过这个过程。

I want to customize a MembershipProvider, but I cannot without adding this class. Please guide me through this process.

推荐答案

有趣。但是,生成错误是你的朋友;)

Interesting. However, build errors are your friend ;)

试图建立内置象你所说的,我得到了下面的生成错误类库:

Attempting to build a class library built as you describe, I get the following build error:

类型名称的MembershipProvider'找不到。此类型已转发到程序集​​System.Web.ApplicationServices,版本= 4.0.0.0,文化=中性公钥= 31bf3856ad364e35。考虑添加一个引用该程序集。

The type name 'MembershipProvider' could not be found. This type has been forwarded to assembly 'System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Consider adding a reference to that assembly.

继指令(增加提及System.Web.ApplicationServices)让我继续如预期。

Following the instructions (adding a reference to System.Web.ApplicationServices) allows me to carry on as expected.

这篇关于的MembershipProvider在.NET 4.0中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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