程序集中不存在System.Web.Security

Kom*_*gem 4 security membership-provider visual-studio-2013

要么我迟到了党,要么我做错了什么.我正在使用Visual Studio 2013,我试图使用Membership类,但是using System.Web.Security;我的程序集中不存在名称空间.

我该怎么做才能解决这个问题?

注意:System.Web存在

目标:.NET Framework 4.5.1

Mil*_*ith 6

System.Web命名空间存在于System.dll中

System.Web.Security 命名空间存在于 System.Web.dll 中

您可以通过转到System.WebSystem.Web.Security命名空间、打开其中一个类并检查 msdn 文章中指出的 dll(作为程序集列出)来检查这一点。


cio*_*iog 6

实际上,在.Net Framework 4+中,命名空间System.Web.Security存在于System.Web.ApplicationServices程序集中,在引用中查找该命名空间