Stupid question of the day: Where is my abstract MembershipProvider base?

Ok, I realized what MembershipProvideris in the namespace System.Web.Security. I added a link System.Webin my project, I added a directive using System.Web.Securityin my .cs file, but as you can see, VS2010 does not believe me:

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 really stupid here ...

Can anyone say what I'm missing here?

+3
source share
2 answers

You need to add a link to System.Web.ApplicationServices.dll.

This is mentioned in the MembershipProvider Help :

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

Google daily result:

This is in assembly System.Web.ApplicationServices.

0
source

Source: https://habr.com/ru/post/1785258/


All Articles