title: The Role Manager feature has not been enabled. MVC 4
body: <p>I have that error when i update my database in package manager console  here's my configuration class and web config
  The Role Manager feature has not been enabled.
  please help me</p>
  
  <p>MY CONFIGURATION CLASS</p>
  
  <pre><code> namespace TechFactorsLMSV2.Migrations
   {
   using System;
   using System.Data.Entity;
   using System.Data.Entity.Migrations;
   using System.Linq;
   using System.Web.Security;
   using TechFactorsLMSV2.Models;
   using WebMatrix.WebData;
  
  internal sealed class Configuration : DbMigrationsConfiguration&lt;TechFactorsLMSV2.Models.LMSDBContext&gt;
  {
      public Configuration()
      {
          AutomaticMigrationsEnabled = false;
      }
  
      protected override void Seed(TechFactorsLMSV2.Models.LMSDBContext context)
      {
          context.Schools.AddOrUpdate(d =&gt; d.SchoolName,
                 new School() { SchoolName = "School 1" },
                 new School() { SchoolName = "School 2" },
                 new School() { SchoolName = "School 3" }
                 );
  
          SeedMembership();
      }
  
      private void SeedMembership()
      {
          WebSecurity.InitializeDatabaseConnection("DefaultConnection",
              "UserProfile", "UserId", "UserName", autoCreateTables: true);
          var roles = (SimpleRoleProvider)Roles.Provider;
          var membership = (SimpleMembershipProvider)Membership.Provider;
  
          if (!roles.RoleExists("Admin"))
          {
              roles.CreateRole("Admin");
          }
          if (membership.GetUser("kadadmin", false) == null)
          {
              membership.CreateUserAndAccount("kadadmin", "password");
          }
          if (!roles.GetRolesForUser("kadadmin").Contains("Admin"))
          {
              roles.AddUsersToRoles(new[] { "sallen" }, new[] { "admin" });
          }
      }
  }
  }
  </code></pre>
  
  <p>MY WEB CONFIG </p>
  
  <pre><code>   &lt;?xml version="1.0"?&gt;
  
  &lt;configuration&gt;
  &lt;configSections&gt;
  &lt;sectionGroup name="system.web.webPages.razor"     type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
    &lt;section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /&gt;
    &lt;section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /&gt;
  &lt;/sectionGroup&gt;
   &lt;/configSections&gt;
   &lt;connectionStrings&gt;
  &lt;add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial    Catalog=aspnet-TechFactorsLMSV2;Integrated  Security=SSPI;AttachDBFilename=|DataDirectory|\TechFactorsLMSV2.mdf"   providerName="System.Data.SqlClient"  /&gt;
    &lt;/connectionStrings&gt;
  
  &lt;system.web.webPages.razor&gt;
  &lt;host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc,   Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
  &lt;pages pageBaseType="System.Web.Mvc.WebViewPage"&gt;
    &lt;namespaces&gt;
      &lt;add namespace="System.Web.Mvc" /&gt;
      &lt;add namespace="System.Web.Mvc.Ajax" /&gt;
      &lt;add namespace="System.Web.Mvc.Html" /&gt;
      &lt;add namespace="System.Web.Optimization"/&gt;
      &lt;add namespace="System.Web.Routing" /&gt;
    &lt;/namespaces&gt;
  &lt;/pages&gt;
  
  
  
  &lt;/system.web.webPages.razor&gt;
  
  &lt;appSettings&gt;
  &lt;add key="webpages:Enabled" value="false" /&gt;
  &lt;/appSettings&gt;
  
  
  
   &lt;system.web&gt;
   &lt;httpHandlers&gt;
    &lt;add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/&gt;
   &lt;/httpHandlers&gt;
  
   &lt;!--
      Enabling request validation in view pages would cause validation to occur
      after the input has already been processed by the controller. By default
      MVC performs request validation before a controller processes the input.
      To change this behavior apply the ValidateInputAttribute to a
      controller or action.
  --&gt;
  &lt;pages
      validateRequest="false"
      pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
      pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
      userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
    &lt;controls&gt;
      &lt;add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" /&gt;
    &lt;/controls&gt;
  &lt;/pages&gt;
  
  
  
  &lt;roleManager enabled="true" defaultProvider="simple"&gt;
    &lt;providers&gt;
      &lt;clear/&gt;
      &lt;add name="simple" type="WebMatrix.WebData.SimpleRoleProvider, 
                           WebMatrix.WebData"/&gt;
    &lt;/providers&gt;
  &lt;/roleManager&gt;
  &lt;membership defaultProvider="simple"&gt;
    &lt;providers&gt;
      &lt;clear/&gt;
      &lt;add name="simple" type="WebMatrix.WebData.SimpleMembershipProvider,
                           WebMatrix.WebData"/&gt;
    &lt;/providers&gt;
  &lt;/membership&gt;
  
  &lt;/system.web&gt;
  
  &lt;system.webServer&gt;
  &lt;validation validateIntegratedModeConfiguration="false" /&gt;
  
  &lt;handlers&gt;
    &lt;remove name="BlockViewHandler"/&gt;
    &lt;add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" /&gt;
  &lt;/handlers&gt;
  </code></pre>
  
  <p>
  </p>