Author: deanlaw | Posted on: 11/19/2009 11:35:45 AM | Views : 469

I am using a custom provider for my roles. I've create a few roles, but when I try to populate a select box using Roles.GetAllRoles(), it returns an empty select box. If I look in my provider DB, the roles are listed there, but I can't return the list. Here is the code from my Web.config file
<roleManager enabled="true" defaultProvider="SqlRoleManager">
   <providers>
      <clear/>
      <add name="SqlRoleManager"
         type="System.Web.Security.SqlRoleProvider"
         connectionStringName="SqlRoleManagerConnection"
         applicationName="myApp" />
   </providers>
</roleManager>
 Here is how I am generating the select box.

Go to the complete details ...