59 references to ConfigurationErrorsException
System.Configuration.ConfigurationManager (59)
System\Configuration\AppSettingsSection.cs (2)
112
throw new
ConfigurationErrorsException
(
124
throw new
ConfigurationErrorsException
(SR.Config_source_file_format, xmlUtil);
System\Configuration\BaseConfigurationRecord.cs (44)
1498
throw new
ConfigurationErrorsException
(
1506
throw new
ConfigurationErrorsException
(SR.Config_source_file_format, xmlUtil);
1515
throw new
ConfigurationErrorsException
(SR.Protection_provider_syntax_error, xmlUtil);
1530
throw new
ConfigurationErrorsException
(SR.Config_source_file_format, xmlUtil);
1758
throw new
ConfigurationErrorsException
(
1775
ConfigurationErrorsException ce = new
ConfigurationErrorsException
(
1866
new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined_at_this_level, tagName), xmlUtil),
1882
new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined, tagName), xmlUtil),
2002
new
ConfigurationErrorsException
(
2020
new
ConfigurationErrorsException
(
2030
new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined, tagName), xmlUtil),
2118
_ => throw new
ConfigurationErrorsException
(
2130
_ => throw new
ConfigurationErrorsException
(
2355
new
ConfigurationErrorsException
(SR.Format(SR.Config_client_config_too_many_configsections_elements, tagName), xmlUtil),
2364
new
ConfigurationErrorsException
(SR.Config_location_location_not_allowed, xmlUtil),
2396
new
ConfigurationErrorsException
(
2472
new
ConfigurationErrorsException
(
2487
new
ConfigurationErrorsException
(
2510
new
ConfigurationErrorsException
(SR.Config_section_locked, xmlUtil),
2535
new
ConfigurationErrorsException
(SR.Config_source_syntax_error, xmlUtil),
2557
new
ConfigurationErrorsException
(
2580
new
ConfigurationErrorsException
(SR.Config_source_syntax_error, xmlUtil),
2723
new
ConfigurationErrorsException
(SR.Invalid_override_mode_declaration, xmlUtil),
2742
new
ConfigurationErrorsException
(SR.Invalid_override_mode_declaration,
2781
throw new
ConfigurationErrorsException
(
2906
new
ConfigurationErrorsException
(
2912
new
ConfigurationErrorsException
(
2979
locationSectionRecord.AddError(new
ConfigurationErrorsException
(
3028
throw new
ConfigurationErrorsException
(SR.Config_tag_name_invalid, errorInfo);
3052
throw new
ConfigurationErrorsException
(
3057
throw new
ConfigurationErrorsException
(SR.Config_tag_name_cannot_begin_with_config, errorInfo);
3060
throw new
ConfigurationErrorsException
(SR.Config_tag_name_cannot_be_location, errorInfo);
3082
throw new
ConfigurationErrorsException
(SR.Config_location_path_invalid_first_character, errorInfo);
3086
throw new
ConfigurationErrorsException
(SR.Config_location_path_invalid_first_character, errorInfo);
3092
throw new
ConfigurationErrorsException
(SR.Config_location_path_invalid_last_character, errorInfo);
3096
throw new
ConfigurationErrorsException
(SR.Config_location_path_invalid_last_character, errorInfo);
3100
throw new
ConfigurationErrorsException
(SR.Config_location_path_invalid_character, errorInfo);
3199
throw new
ConfigurationErrorsException
(SR.Config_source_invalid_format, errorInfo);
3203
throw new
ConfigurationErrorsException
(SR.Config_source_invalid_format, errorInfo);
3206
throw new
ConfigurationErrorsException
(SR.Config_source_invalid_format, errorInfo);
3212
throw new
ConfigurationErrorsException
(SR.Config_source_invalid_format, errorInfo);
3315
throw new
ConfigurationErrorsException
(
3341
throw new
ConfigurationErrorsException
(
3558
throw new
ConfigurationErrorsException
(SR.Protection_provider_invalid_format, errorInfo);
System\Configuration\ClientConfigurationHost.cs (3)
361
ConfigurationAllowExeDefinition.MachineOnly => new
ConfigurationErrorsException
(
363
ConfigurationAllowExeDefinition.MachineToApplication => new
ConfigurationErrorsException
(
365
ConfigurationAllowExeDefinition.MachineToRoamingUser => new
ConfigurationErrorsException
(
System\Configuration\MgmtConfigurationRecord.cs (1)
1706
throw new
ConfigurationErrorsException
(SR.Config_section_locked, (IConfigErrorInfo)null);
System\Configuration\OverrideModeSetting.cs (1)
66
_ => throw new
ConfigurationErrorsException
(
System\Configuration\XmlUtil.cs (8)
92
throw new
ConfigurationErrorsException
(SR.Config_base_unrecognized_element, this);
237
ConfigurationException ex = new
ConfigurationErrorsException
(
272
ConfigurationErrorsException ex = new
ConfigurationErrorsException
(
281
ConfigurationErrorsException ex = new
ConfigurationErrorsException
(
290
ConfigurationErrorsException ex = new
ConfigurationErrorsException
(
299
ConfigurationErrorsException ex = new
ConfigurationErrorsException
(
313
ConfigurationException ex = new
ConfigurationErrorsException
(
339
new
ConfigurationErrorsException
(SR.Format(SR.Config_invalid_boolean_attribute, Reader.Name), this),