protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); // var iocManager = IoCConfig.IocManager(new ContainerBuilder()); IoCConfig.IocManager(new ContainerBuilder()).SetAutofacResolver(); }