+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Role feature is not enabled (error)

Role feature is not enabled (error)

9 posts, 0 answered
  1. GGWebmaster
    GGWebmaster avatar
    10 posts
    Registered:
    02 Jan 2009
    02 Mar 2009
    Link to this post
    Role feature is not enabled.

    Hey I am upgrading to 3.6 and as I log in to the web based application I get this error. Any help would be greatly appreciated!

    Server Error in '/' Application.

    Role feature is not enabled.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ApplicationException: Role feature is not enabled.

    Source Error:

    Line 33:     {
    Line 34:         HttpCookie cookie = this.Response.Cookies[FormsAuthentication.FormsCookieName];
    Line 35:         UserManager.Default.SetAuthenticationCookie(cookie);
    Line 36: 
    Line 37:         string redirectUrl = Request.QueryString["ReturnUrl"];

    Source File: c:\inetpub\wwwroot\getgymnastics.com\wwwroot\Sitefinity\Login.aspx.cs    Line: 35

    Stack Trace:

    [ApplicationException: Role feature is not enabled.]
       Telerik.Security.UserManager.EnsureEnabled() +98
       Telerik.Security.UserManager.get_RoleProvider() +37
       Telerik.Security.UserManager.SetAuthenticationCookie(HttpCookie cookie) +147
       Admin_Login.Login1_LoggedIn(Object sender, EventArgs e) in c:\inetpub\wwwroot\getgymnastics.com\wwwroot\Sitefinity\Login.aspx.cs:35
       System.Web.UI.WebControls.Login.OnLoggedIn(EventArgs e) +111
       System.Web.UI.WebControls.Login.AttemptLogin() +179
       System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
  2. GGWebmaster
    GGWebmaster avatar
    10 posts
    Registered:
    02 Jan 2009
    02 Mar 2009
    Link to this post
    I'm sorry, I figured it out! Thank you though!
  3. Kevin Pipher
    Kevin Pipher avatar
    91 posts
    Registered:
    30 Nov 2005
    04 Mar 2009
    Link to this post
    I ran into the same problem.

    It seems the roleManager is disabled in the "new_web.config" file supplied with the v3.6 hotfix patch:

    <roleManager enabled="false" cacheRolesInCookie="true" defaultProvider="Sitefinity">

    I noticed this when I was merging the changes into my web.config during the upgrade but I thought it was for a good reason. Once I enabled it everything went fine.

    Telerik, can this be address in the new_web.config file included with the 3.6 downloads?


  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    05 Mar 2009
    Link to this post
    Hello Kevin Pipher,

    Generally roleManager is automatically enabled after you specify your database and database server in Sitefinity UI and press "I'm done" button. This causes updating in the web.config file.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Kevin Pipher
    Kevin Pipher avatar
    91 posts
    Registered:
    30 Nov 2005
    05 Mar 2009
    Link to this post
    Thanks for the info Ivan. I noticed afterward that the web.config was updated (Visual studio prompted to reload the file because it was changed outside the editor).  It was strange though, because the application still failed with a role manager not enabled exception.

    Once I hit refresh it went ahead with the initial upgrade as expected.

    Everything works fine now. Just thought I'd share my experience with the issue in case it helps others.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    05 Mar 2009
    Link to this post
    Hello Kevin Pipher,

    I am glad to hear that everything is fine right now at your end, and I am happy for  your contribution here. I agree that the error is really annoying and this post will be helpful to other community members.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Gary McDonald
    Gary McDonald avatar
    1 posts
    Registered:
    31 Aug 2009
    08 Sep 2009
    Link to this post
    I recieved the "Role feature is not enabled" error after setting the DB settings and clicking next. The strange thing is that I just hit back and refresh and everything worked fine. It looks like the Project Manager tool is doing something asynchronously during Project Startup. After the refresh, I entered a Admin account with email and password and was redirected to the Login page. Everything seems to work fine.
  8. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    08 Sep 2009
    Link to this post
    Hi Gary McDonald,

    Thank you for using our services.

    You will get this error if you are setting up a new project using the built in SQL Express database that comes with a creation of a new project, because there are no roles that exist in the role provider during project initialization. If you use your database you should not get this error. As described in previous posts to this thread the project manager is editing the web.config of your site during CMS startup and this gets resolved.

    Regards,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Akif Irshad
    Akif  Irshad avatar
    1 posts
    Registered:
    31 Aug 2012
    09 Oct 2009
    Link to this post
    Just do a Refresh,

    Refreshing the browser will do the all trick

    Best of luck,

Register for webinar
9 posts, 0 answered