我怎样才能的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中
发布评论