protected override void Application_Start(Object sender, EventArgs e) { HttpContext.Current.Cache.Insert("Pages", DateTime.Now, null, System.DateTime.MaxValue, System.TimeSpan.Zero, System.Web.Caching.CacheItemPriority.NotRemovable, null); base.Application_Start(sender, e); DBlog.Data.Hibernate.Session.Configuration.AddAssembly("DBlog.Data"); DBlog.Data.Hibernate.Session.Configuration.AddAssembly("DBlog.Data.Hibernate"); using (DBlog.Data.Hibernate.Session.OpenConnection(WebService.GetNewConnection())) { CreateAdministrator(); } DBlog.WebServices.Blog blog = new DBlog.WebServices.Blog(); if (EventLogEnabled) { EventLog.WriteEntry(string.Format("Running with back-end web services {0}.", blog.GetVersion()), EventLogEntryType.Information); } if (ServicesEnabled) { mFeedUpdateService.Start(); } }