예제 #1
0
        protected void Application_Start()
        {
            // Load Web.Config AppSettings
            LoadConfigSettings();

            // Initialize Utilities
            UtilitySystem.Initialize();

            // Initialize Services
            ServiceSystem.Initialize();
            ServiceSystem.InitializeApplication();

            // Initialize Irma Services
            IrmaServiceSystem.Initialize();

            // Initialize Tlc LookupLists
            TlcManageLookupLists.InitLookupLists();

            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            // DevExpress Model Binder
            System.Web.Mvc.ModelBinders.Binders.DefaultBinder = new DevExpress.Web.Mvc.DevExpressEditorsBinder();
            //DevExpress.Web.BinaryStorageConfigurator.Mode = DevExpress.Web.BinaryStorageMode.Session;

            //Localization
            ModelMetadataProviders.Current = new EnscoLocalizationProvider();
            ASPxWebControl.CallbackError  += Application_Error;
        }