gsharp gsharp - 1 year ago 346
ASP.NET (C#) Question

The Role Manager feature has not been enabled

Got the following ProviderException :

The Role Manager feature has not been enabled.

So far so good.

Is there somewhere a method that can be called to check if the Role Manager has been enabled or not?

Answer Source

You can do this by reading from the boolean property at:


This is a direct read from the enabled attribute of the roleManager element in the web.config:

    <roleManager enabled="true" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download