Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...GetAllRolesGetAllRoles
Previous
 
Next
New Post
9/29/2008 11:24 AM
 

I simply want to get a list of all roles available in my portal....shouldn;t be difficult should it?

I have tried using Roles.GetAllRoles, but get an error saying "The Role Manager feature has not been enabled."  I have tried adding a rolemanager to my web.config but this had made no difference!

I have tried finding another way, but so far no luck. Please can someone point me in the right direction.


Blue & White hooped blood runs through my veins!
 
New Post
9/29/2008 7:29 PM
 

that's not a dotnetnuke error, it comes from the microsoft memberrole provider. We have our own membership role provider which uses it as the default and then extends it, so to work with roles you need to work with the dotnetnuke API - something like the following should work for you

Dim objRoles As New RoleController
Dim arrRoles As ArrayList = objRoles.GetPortalRoles(PortalID)

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/30/2008 3:27 AM
 

Thanks Cathal, that works a treat.

I knew it had to be pretty simple.

Just out of interest, is there any documentation on the DNN framework that lists all these type of functions?

It woudl be a bit easier than working my way through the DNN namepsace in object browser


Blue & White hooped blood runs through my veins!
 
New Post
9/30/2008 5:13 PM
 

theres a chm of the API available - see http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/1919/Default.aspx for more. Theres a lot of information that needs to be expanded - i've down a little work to generate some more useful comments, but i'm waiting until after 5.0 to add them. We're also looking to integrate a documentation step into our release procedure so each new release will generate updated API documentation, preferabbly in both downloadable and online fashion (a browsable ajax enabled website for the online version)

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...GetAllRolesGetAllRoles


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out