In Winform I need ASP.NET like membership and roles stuff. But Roles doesn't work
- by user512602
Hi, following http://www.theproblemsolver.nl/usingthemembershipproviderinwinforms.htm I set up the membership & roles providers in app.config and try use it in code.
Authentication works well, bur roles always returns empty roles array for connected user.
This part works:
If Membership.ValidateUser(userName, password) Then
' Set the…