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