protected virtual bool ReadConfiguration() { if (String.IsNullOrEmpty(this.ConfigurationPath)) { return(false); } //PathInfoRemove: //if (RepositoryPathInfo.GetPathInfo(this.ConfigurationPath) == null) if (NodeHead.Get(this.ConfigurationPath) == null) { _errorMessage = String.Format(CultureInfo.InvariantCulture, HttpContext.GetGlobalResourceObject("PublicRegistrationPortlet", "ConfigSettingNotFound") as string, this.ConfigurationPath); return(false); } // Load config settings. var _configContent = SNC.Content.Load(this._configurationPath); Configuration = new ConfigurationWrapper(_configContent); return(true); }
protected virtual bool ReadConfiguration() { if (String.IsNullOrEmpty(this.ConfigurationPath)) return false; //PathInfoRemove: //if (RepositoryPathInfo.GetPathInfo(this.ConfigurationPath) == null) if (NodeHead.Get(this.ConfigurationPath) == null) { _errorMessage = String.Format(CultureInfo.InvariantCulture, HttpContext.GetGlobalResourceObject("PublicRegistrationPortlet", "ConfigSettingNotFound") as string, this.ConfigurationPath); return false; } // Load config settings. var _configContent = SNC.Content.Load(this._configurationPath); Configuration = new ConfigurationWrapper(_configContent); return true; }