public virtual Type GetConfigType (string typeName, bool throwOnError) { Type type = HttpApplication.LoadType (typeName); if (type == null && throwOnError) throw new ConfigurationErrorsException ("Type not found: '" + typeName + "'"); return type; }