private static void InitConfigurations() { var configPath = System.Web.Hosting.HostingEnvironment.MapPath(DefaultConfigPath); if (File.Exists(configPath)) { ConfigurationManager.ApplyConfiguration(new FileConfigurationStore(configPath)); } }