Class library can't find MembershipUser

后端 未结 1 1979
难免孤独
难免孤独 2021-02-07 12:56

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

In one of my classes, I need to use the MembershipUser class, but the project can\'t find it. I\'ve added referenc

相关标签:
1条回答
  • 2021-02-07 13:37

    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)
    

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

    0 讨论(0)
提交回复
热议问题