void Application_Start(object sender, EventArgs e) { // Code that runs on application startup RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); var RoleManager = new ApplicationRoleManager(); RoleManager.AddDefaultRoles(); var UserManager = new ApplicationUserManager(new UserStore <ApplicationUser>(new ApplicationDbContext())); UserManager.AddDefaultUsers(); }