类库找不到的MembershipUser [英] Class library can't find MembershipUser

查看:119
本文介绍了类库找不到的MembershipUser的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了一个类库项目到我的申请。

I've added a class library project to my application.

在我的班级之一,我需要使用类的MembershipUser,但项目无法找到它。我已经添加引用System.Web程序,System.Web.Security和System.Security.Principal。

In one of my classes, I need to use the MembershipUser class, but the project can't find it. I've added references to System.Web, System.Web.Security, and System.Security.Principal.

我不知道是什么问题。有没有人碰到这个?

I'm not sure what the problem is. Has anyone run into this?

推荐答案

如果您使用的是.NET 4.0,你需要引用 System.Web.ApplicationServices.dll 组装。由于的<一个总的文件href=\"http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.aspx\">MembershipUser包含所有必要的信息:

If you are using .NET 4.0 you need to reference the System.Web.ApplicationServices.dll assembly. As always the documentation of the MembershipUser contains all the necessary information:

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

在框架中的<一的previous版本href=\"http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser%28v=VS.85%29.aspx\">MembershipUser类是位于 System.Web.dll程序组装。

In previous versions of the framework the MembershipUser class was located in the System.Web.dll assembly.

这篇关于类库找不到的MembershipUser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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