private void Init3() { // OZ Initialize Company Web Site Semaphore CompanyWebSiteSemaphore.Initialize(); DbHelper2.Init2(); ValidateSqlServerVesion(); _sqlServerEdition = (SqlServerEdition)DBCommon.GetSqlServerEdition(); DatabaseState state = (DatabaseState)DBCommon.GetDatabaseState(); if (state != DatabaseState.Ready) { throw new DatabaseStateException(state); } Alerts2.Init(); PortalConfig.Current.Init(); _host = PortalConfig.SystemHost; string scheme = PortalConfig.SystemScheme; string port = PortalConfig.SystemPort; _companyType = PortalConfig.CompanyType; if (PortalConfig.CompanyEndDate.HasValue) { _endDate = PortalConfig.CompanyEndDate.Value; } else { _endDate = DateTime.MaxValue; } _portalLink = string.Format("{0}://{1}{2}", scheme, _host, !string.IsNullOrEmpty(port) ? (":" + port) : ""); _serverLink = _portalLink + "/"; _defaultLocale = DBCommon.GetDefaultLanguageName(); _initialized = true; }