I installed Time Tracker locally with VS 2008 and SQL Server 2008 and everything works. I created a user for myself, and then uploaded the database to my host and uploaded the Time Tracker app and made it a subdomain (timetracker.strongchoice.com). When I try to sign in, two things happen. First, I can't sign in using the credentials I created locally and that I can now see in the hosted SQL Server database. Second, when I try to create a new user, I get "
The Role Manager feature has not been enabled.
(complete error below)
In the web.config file, there is the correct code
<authentication mode="Forms">
<forms loginUrl="~/TimeTracker/login.aspx"/>
</authentication>
<compilation debug="true"/>
<customErrors mode="Off"/>
<machineKey decryptionKey="AutoGenerate,IsolateApps"/>
<roleManager enabled="true"/>
</system.web>
Has anyone come across behavior like this? I would appreciate any suggestions.
Server Error in '/' Application.
The Role Manager feature has not been 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.Configuration.Provider.ProviderException: The Role Manager feature has not been enabled.
Source Error:
Line 33: switch (roleInformation) {
Line 34: case ("0"):
Line 35: Roles.AddUserToRole(newUserName, "ProjectAdministrator");
Line 36: Roles.AddUserToRole(newUserName, "ProjectManager");
Line 37: Roles.AddUserToRole(newUserName, "Consultant");
Source File: d:\inetpub\vhosts\strongchoice.com\httpdocs\TimeTracker\TimeTracker\User_Create.aspx.cs Line: 35
Stack Trace:
[ProviderException: The Role Manager feature has not been enabled.]
System.Web.Security.Roles.EnsureEnabled() +1874606
System.Web.Security.Roles.AddUserToRole(String username, String roleName) +38
User_Create_aspx.AddUserToRole(String newUserName, String roleInformation) in d:\inetpub\vhosts\strongchoice.com\httpdocs\TimeTracker\TimeTracker\User_Create.aspx.cs:35
User_Create_aspx.CreateUserWizard1_CreatedUser(Object sender, EventArgs e) in d:\inetpub\vhosts\strongchoice.com\httpdocs\TimeTracker\TimeTracker\User_Create.aspx.cs:54
System.Web.UI.WebControls.CreateUserWizard.OnCreatedUser(EventArgs e) +111
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +354
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +102
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +418
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +161
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +19
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