Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
If you can run some code that looks like this you should be able to find it
var collection = Membership.GetAllUsers();
string[] roles = System.Web.Security.Roles.GetAllRoles();
foreach (MembershipUser user in collection)
{
foreach (string role in roles)
{
if (role.Equals(user.UserName))
return "same username and role name " + role;
}
}
}
string[] roles = System.Web.Security.Roles.GetAllRoles();
should return all roles defined. Therefor I quess the problem is in your RoleProvider secion of web.config.
The error isn't very specific about which user or group is causing the problem.