Value cannot be null - GetUsersInRole

Posted by Community Admin on 03-Aug-2018 16:10

Value cannot be null - GetUsersInRole

All Replies

Posted by Community Admin on 08-May-2011 00:00

Hi,

The following code throws a Value cannot be null. Parameter name: role exception for the following line of code:

List<Telerik.Sitefinity.Security.Model.User> editors = roleManager.GetUsersInRole("Editors").ToList();

What am I doing wrong?

Thanks

Posted by Community Admin on 11-May-2011 00:00

Hi Raihan,

Most probably the instance of the provider which you used to create the rolemanager is not correct. Please check this post.

Greetings,
Ivan Dimitrov
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed