protected void Application_Start() { System.Data.Entity.Database.SetInitializer(new ImageSharingDBInitializer()); using (ApplicationDbContext db = new ApplicationDbContext()) { db.Database.Initialize(false); } AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); ImageStorage.DeleteAllBlob(); LogContext.DeleteTable(); MessageQueue.ClearAllQueues(); }