The Role Manager feature has not been enabled

后端 未结 7 802
再見小時候
再見小時候 2020-12-04 11:50

Got the following ProviderException :

The Role Manager feature has not been enabled.

So far so good.

Is there somewher

7条回答
  •  情深已故
    2020-12-04 12:27

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

    System.Web.Security.Roles.Enabled
    

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

    
      
        
      
    
    


    Update:
    For more information, check out this MSDN sample: https://msdn.microsoft.com/en-us/library/aa354509(v=vs.110).aspx

提交回复
热议问题