c# - 我的抽象基础 MembershipProvider 在哪里?

标签 c# security namespaces membership membership-provider

我知道 MembershipProvider 位于 System.Web.Security 命名空间中。我在我的项目中添加了一个引用 System.Web,我在我的 .cs 文件中添加了一个 using System.Web.Security 指令 - 但如您所见, VS2010 不相信我:

The type or namespace name 'MembershipProvider' could not be found
(are you missing a using directive or an assembly reference?)

I'm probably missing something here...

我在这里错过了什么?

最佳答案

您需要添加对 System.Web.ApplicationServices.dll 的引用。

MembershipProvider help 中提到了这一点:

Namespace:  System.Web.Security
Assembly:  System.Web.ApplicationServices (in System.Web.ApplicationServices.dll)

关于c# - 我的抽象基础 MembershipProvider 在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4683718/

相关文章:

c# - 如何在 aspx.cs 文件中包含一个类?

c# - 如何将两个非托管 C++ 函数包装到两个托管 C# 函数中?

java - 查询jsf应用程序的版本信息

c# - 我不能使用 system.windows.control 命名空间

c++ - 与第三方公共(public)图书馆/代码接口(interface)

php - 更好的随机生成 PHP

c# - sleep 特定蜱虫

c# - WCF 配置 hell ?

c# - 如何禁用 OpenFileDialog 自动打开文件?

mysql - 将最小权限应用于数据库连接