protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); ModelBinders.Binders.DefaultBinder = new DevExpress.Web.Mvc.DevExpressEditorsBinder(); NinjectWebCommon.GetBootstrapper().Start(); Container.Default.Bind <IRepositoryFactory, RepositoryFactory>(); Container.Default.Bind <IPop3Service, OpenPopService>(); Container.Default.Bind <ISchedulerService, SchedulerService>(); new Bootstrapper().Start(); // Start scheduler Container.Default.GetInstance <ISchedulerService>().Run(); }