Is RoleProvider no longer available in C # Framework 4.0?

I have a Custom RoleProvider created some time ago, and you want to change the library to use the .NET Framework 4. After the change, I lose the reference to the RoleProvider class. Has something changed from 3.5 for RoleProvider ? He seems to have disappeared.

Does anyone know a new way to create them in C # 4.0, or do I need to go back to C # 3.5 and rely on the v2.0 library for System.Web.Security ?

Or do I now need to use SqlRoleProvider instead, although I use a different db than SQL?

+7
source share
1 answer

The assembly has changed from System.Web (in System.Web.dll) (in .NET 3.5 - http://msdn.microsoft.com/en-us/library/system.web.security.roleprovider(v=VS.90) .aspx ) to the .Web.ApplicationServices system (in System.Web.ApplicationServices.dll) (in .NET 4.0 - http://msdn.microsoft.com/en-us/library/system.web.security.roleprovider(v = VS.100) .aspx )

You need a link to the new assembly.

+17
source

All Articles