public static void StartApplication(HttpContext current) { ApplicationUptime.SetApplicationStartTime(); SettingsGeneral.SetAbsolutePath(current.Server.MapPath("~/")); // loger must init ONLY after SetAbsolutePath Debug.InitLogger(); // SetIsDbFirstCheckAtApplicationStart(true); AppServiceStartAction.isAppFistRun = true; TryToStartDbDependServices(); LoadModules(); }
public static void StartApplication(HttpContext current) { ServicePointManager.Expect100Continue = false; ApplicationUptime.SetApplicationStartTime(); SettingsGeneral.SetAbsolutePath(current.Server.MapPath("~/")); // loger must init ONLY after SetAbsolutePath Debug.InitLogger(); // Set "first run" flag AppServiceStartAction.isAppFistRun = true; // Try to run DB depend code TryToStartDbDependServices(); // No DB depend code here! }