Author: WombatEd | Posted on: 8/12/2008 5:55:45 PM | Views : 348

I'm trying to generate a list of all Roles defined for my website, but when I call Roles.GetAllRoles(), it returns an empty array.  In my database, the aspnet_Roles table contains five records, but .Net fails to find them.

The code I'm using in my Page_Load handler is this:

  Dim RolesArray As String() = Roles.GetAllRoles()

When I execute this line, and then look at RolesArray in the debugger, it's empty.

My web.config looks like this (I've trimmed it a bit):
< Go to the complete details ...