114 references to ConfigurationErrorsException
System.Configuration.ConfigurationManager (114)
System\Configuration\ApplicationSettingsBase.cs (4)
473
throw new
ConfigurationErrorsException
(SR.Format(SR.ProviderTypeLoadFailed, providerTypeName));
480
throw new
ConfigurationErrorsException
(SR.Format(SR.ProviderInstantiationFailed, providerTypeName));
626
throw new
ConfigurationErrorsException
(SR.Format(SR.ProviderInstantiationFailed, providerTypeName));
631
throw new
ConfigurationErrorsException
(SR.Format(SR.ProviderTypeLoadFailed, providerTypeName));
System\Configuration\BaseConfigurationRecord.cs (2)
1601
throw new
ConfigurationErrorsException
(SR.Format(SR.ProtectedConfigurationProvider_not_found,
3229
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_source_cannot_be_shared,
System\Configuration\ClientSettingsStore.cs (3)
158
throw new
ConfigurationErrorsException
(SR.UserSettingsNotSupported);
176
throw new
ConfigurationErrorsException
(SR.UserSettingsNotSupported);
213
throw new
ConfigurationErrorsException
(SR.SettingsSaveFailedNoSection);
System\Configuration\ConfigurationElement.cs (12)
109
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_attribute_locked, LockItemKey));
213
throw new
ConfigurationErrorsException
(SR.Config_element_no_context);
396
throw new
ConfigurationErrorsException
(
801
throw new
ConfigurationErrorsException
(
829
if (IsReadOnly()) throw new
ConfigurationErrorsException
(SR.Config_base_read_only);
838
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_attribute_locked, prop.Name));
1081
throw new
ConfigurationErrorsException
(SR.Format(
1170
throw new
ConfigurationErrorsException
(
1270
throw new
ConfigurationErrorsException
(SR.Format(format,
1352
throw new
ConfigurationErrorsException
(
1764
throw new
ConfigurationErrorsException
(SR.Format(SR.Validator_does_not_support_elem_type,
1780
throw new
ConfigurationErrorsException
(SR.Format(SR.Validator_element_not_valid, elem.ElementTagName,
System\Configuration\ConfigurationElementCollection.cs (32)
82
if (IsReadOnly()) throw new
ConfigurationErrorsException
(SR.Config_base_read_only);
507
if (IsReadOnly()) throw new
ConfigurationErrorsException
(SR.Config_base_read_only);
510
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_element_locked, _addElement));
520
throw new
ConfigurationErrorsException
(SR.Config_base_collection_item_locked);
619
if (IsReadOnly()) throw new
ConfigurationErrorsException
(SR.Config_base_read_only);
648
throw new
ConfigurationErrorsException
(SR.Config_base_cannot_add_items_below_inherited_items);
655
throw new
ConfigurationErrorsException
(SR.Config_base_cannot_add_items_above_inherited_items);
664
throw new
ConfigurationErrorsException
(SR.Format(SR.IndexOutOfRange, index));
682
if (IsReadOnly()) throw new
ConfigurationErrorsException
(SR.Config_base_read_only);
683
if (index < -1) throw new
ConfigurationErrorsException
(SR.Format(SR.IndexOutOfRange, index));
733
throw new
ConfigurationErrorsException
(SR.Config_base_read_only);
744
throw new
ConfigurationErrorsException
(
751
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_attribute_locked, key));
766
throw new
ConfigurationErrorsException
(
774
throw new
ConfigurationErrorsException
(
790
throw new
ConfigurationErrorsException
(SR.Config_base_collection_entry_already_removed);
796
throw new
ConfigurationErrorsException
(
816
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_collection_entry_not_found, key));
851
if (index < 0) throw new
ConfigurationErrorsException
(SR.Format(SR.IndexOutOfRange, index));
869
throw new
ConfigurationErrorsException
(SR.Format(SR.IndexOutOfRange, index));
889
if (index < 0) throw new
ConfigurationErrorsException
(SR.Format(SR.IndexOutOfRange, index));
903
if (entry == null) throw new
ConfigurationErrorsException
(SR.Format(SR.IndexOutOfRange, index));
910
if (IsReadOnly()) throw new
ConfigurationErrorsException
(SR.Config_base_read_only);
941
throw new
ConfigurationErrorsException
(SR.Config_base_collection_item_locked_cannot_clear);
963
if (IsReadOnly()) throw new
ConfigurationErrorsException
(SR.Config_base_read_only);
978
if (entry == null) throw new
ConfigurationErrorsException
(SR.Format(SR.IndexOutOfRange, index));
981
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_attribute_locked,
996
throw new
ConfigurationErrorsException
(SR.Config_base_cannot_remove_inherited_items);
999
throw new
ConfigurationErrorsException
(SR.Config_base_cannot_remove_inherited_items);
1016
throw new
ConfigurationErrorsException
(SR.Config_base_collection_entry_already_removed);
1021
throw new
ConfigurationErrorsException
(SR.Config_base_collection_elements_may_not_be_removed);
1193
throw new
ConfigurationErrorsException
(SR.Config_base_invalid_element_key);
System\Configuration\ConfigurationLockCollection.cs (5)
129
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_attribute_locked, name));
162
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_required_attribute_lock_attempt,
253
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_collection_entry_not_found, name));
261
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_attribute_locked, name));
324
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_collection_entry_not_found, name));
System\Configuration\ConfigurationManager.cs (2)
42
throw new
ConfigurationErrorsException
(SR.Config_appsettings_declaration_invalid);
60
throw new
ConfigurationErrorsException
(SR.Config_connectionstrings_declaration_invalid);
System\Configuration\ConfigurationProperty.cs (8)
102
throw new
ConfigurationErrorsException
(
227
throw new
ConfigurationErrorsException
(
259
throw new
ConfigurationErrorsException
(SR.Format(SR.Validator_does_not_support_prop_type, Name));
281
throw new
ConfigurationErrorsException
(SR.Format(SR.Default_value_wrong_type, Name));
309
throw new
ConfigurationErrorsException
(SR.Format(SR.Default_value_conversion_error_from_string,
340
throw new
ConfigurationErrorsException
(SR.Format(SR.Top_level_conversion_error_from_string, Name,
363
throw new
ConfigurationErrorsException
(
405
throw new
ConfigurationErrorsException
(SR.Format(SR.No_converter, Name, Type.Name));
System\Configuration\ConfigurationSectionGroup.cs (1)
55
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined,
System\Configuration\DpapiProtectedConfigurationProvider.cs (6)
23
throw new
ConfigurationErrorsException
(SR.DPAPI_bad_data);
28
throw new
ConfigurationErrorsException
(SR.DPAPI_bad_data);
32
throw new
ConfigurationErrorsException
(SR.DPAPI_bad_data);
36
throw new
ConfigurationErrorsException
(SR.DPAPI_bad_data);
100
throw new
ConfigurationErrorsException
(SR.Format(SR.Unrecognized_initialization_value, configurationValues.GetKey(0)));
133
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_invalid_boolean_attribute, valueName));
System\Configuration\Internal\InternalConfigHost.cs (1)
237
throw new
ConfigurationErrorsException
(SR.Config_no_stream_to_write);
System\Configuration\Internal\WriteFileContext.cs (1)
179
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_write_failed, target));
System\Configuration\LocalFileSettingsProvider.cs (4)
111
throw new
ConfigurationErrorsException
(SR.UserSettingsNotSupported);
281
throw new
ConfigurationErrorsException
(SR.UserSettingsNotSupported);
426
throw new
ConfigurationErrorsException
(SR.Format(SR.BothScopeAttributes, setting.Name));
430
throw new
ConfigurationErrorsException
(SR.Format(SR.NoScopeAttributes, setting.Name));
System\Configuration\MgmtConfigurationRecord.cs (7)
199
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_unrecognized_configuration_section,
546
throw new
ConfigurationErrorsException
(SR.Config_source_requires_file);
569
throw new
ConfigurationErrorsException
(
607
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_unexpected_node_type, reader.NodeType));
613
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_unexpected_element_name, reader.Name));
1027
throw new
ConfigurationErrorsException
(SR.Config_data_read_count_mismatch);
1576
throw new
ConfigurationErrorsException
(
System\Configuration\OverrideModeSetting.cs (1)
333
throw new
ConfigurationErrorsException
(SR.Cannot_change_both_AllowOverride_and_OverrideMode);
System\Configuration\SectionInformation.cs (9)
96
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined, ConfigKey));
117
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined, ConfigKey));
138
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined, ConfigKey));
164
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined, ConfigKey));
328
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined, ConfigKey));
349
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined, ConfigKey));
379
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_tag_name_already_defined,
586
throw new
ConfigurationErrorsException
(SR.Format(SR.Cannot_declare_or_remove_implicit_section, SectionName));
590
throw new
ConfigurationErrorsException
(
System\Configuration\StringAttributeCollection.cs (2)
75
if (IsReadOnly) throw new
ConfigurationErrorsException
(SR.Config_base_read_only);
81
throw new
ConfigurationErrorsException
(SR.Format(SR.Config_base_value_cannot_contain, ","));
System\Diagnostics\ListenerElementsCollection.cs (6)
188
throw new
ConfigurationErrorsException
(SR.Format(SR.Reference_listener_cant_have_properties, Name));
193
throw new
ConfigurationErrorsException
(SR.Format(SR.Reference_to_nonexistent_listener, Name));
199
throw new
ConfigurationErrorsException
(SR.Format(SR.Reference_to_nonexistent_listener, Name));
314
throw new
ConfigurationErrorsException
(SR.Format(SR.Reference_listener_cant_have_properties, Name));
319
throw new
ConfigurationErrorsException
(SR.Format(SR.Reference_to_nonexistent_listener, Name));
325
throw new
ConfigurationErrorsException
(SR.Format(SR.Reference_to_nonexistent_listener, Name));
System\Diagnostics\SourceElementsCollection.cs (1)
77
throw new
ConfigurationErrorsException
(SR.Format(SR.Only_specify_one, Name));
System\Diagnostics\TraceUtils.cs (7)
25
throw new
ConfigurationErrorsException
(SR.EmptyTypeName_NotAllowed);
41
throw new
ConfigurationErrorsException
(SR.Format(SR.Could_not_find_type, className));
46
throw new
ConfigurationErrorsException
(SR.Format(SR.Incorrect_base_type, className, baseType.FullName));
54
throw new
ConfigurationErrorsException
(SR.TL_InitializeData_NotSpecified);
59
throw new
ConfigurationErrorsException
(SR.Format(SR.Could_not_get_constructor, className));
95
throw new
ConfigurationErrorsException
(SR.Format(SR.Could_not_get_constructor, className));
138
throw new
ConfigurationErrorsException
(SR.Format(SR.Could_not_create_type_instance, className));