System\Configuration\BaseConfigurationRecord.cs (17)
1356SR.Format(SR.Config_exception_creating_section, factoryRecord.ConfigKey),
1499SR.Format(SR.Config_cannot_open_config_source, sectionXmlInfo.ConfigSource),
1601throw new ConfigurationErrorsException(SR.Format(SR.ProtectedConfigurationProvider_not_found,
1638SR.Format(SR.Config_exception_creating_section_handler, factoryRecord.ConfigKey), e, filename,
1740SR.Format(SR.Config_exception_creating_section_handler, factoryRecord.ConfigKey), e,
1759SR.Format(SR.Config_file_doesnt_have_root_configuration, xmlUtil.Filename), xmlUtil);
1866new ConfigurationErrorsException(SR.Format(SR.Config_tag_name_already_defined_at_this_level, tagName), xmlUtil),
1882new ConfigurationErrorsException(SR.Format(SR.Config_tag_name_already_defined, tagName), xmlUtil),
2003SR.Format(SR.Config_tag_name_already_defined_at_this_level, tagName),
2021SR.Format(SR.Config_tag_name_already_defined, tagName), xmlUtil),
2030new ConfigurationErrorsException(SR.Format(SR.Config_tag_name_already_defined, tagName), xmlUtil),
2355new ConfigurationErrorsException(SR.Format(SR.Config_client_config_too_many_configsections_elements, tagName), xmlUtil),
2397SR.Format(SR.Config_unrecognized_configuration_section, configKey), xmlUtil),
3053SR.Format(SR.Cannot_declare_or_remove_implicit_section, name), errorInfo);
3229throw new ConfigurationErrorsException(SR.Format(SR.Config_source_cannot_be_shared,
3316SR.Format(SR.Config_source_cannot_be_shared, configSourceArg),
3342SR.Format(SR.Config_source_parent_conflict, configSourceArg),
System\Configuration\ConfigurationElement.cs (20)
109throw new ConfigurationErrorsException(SR.Format(SR.Config_base_attribute_locked, LockItemKey));
397SR.Format(SR.Config_base_attribute_locked, propInfo.Name));
523throw new ConfigurationErrorsException(SR.Format(SR.Config_base_element_locked, elementName),
802SR.Format(SR.Validator_does_not_support_elem_type, type.Name));
838throw new ConfigurationErrorsException(SR.Format(SR.Config_base_attribute_locked, prop.Name));
1081throw new ConfigurationErrorsException(SR.Format(
1171SR.Format(SR.Config_base_element_cannot_have_multiple_child_elements, prop.Name));
1286throw new ConfigurationErrorsException(SR.Format(SR.Empty_attribute, LockAttributesKey),
1289throw new ConfigurationErrorsException(SR.Format(SR.Empty_attribute, LockElementsKey),
1353SR.Format(SR.Config_base_required_attribute_lock_attempt, propToLock.Name));
1413throw new ConfigurationErrorsException(SR.Format(SR.Config_base_element_locked, reader.Name), reader);
1430SR.Format(SR.Config_base_attribute_locked, propertyName), reader);
1440SR.Format(SR.Config_base_unrecognized_attribute, propertyName), reader);
1461SR.Format(SR.Config_invalid_boolean_attribute, propertyName), reader);
1485SR.Format(SR.Config_base_unrecognized_attribute, propertyName),
1518SR.Format(SR.Config_base_element_cannot_have_multiple_child_elements,
1533SR.Format(SR.Config_base_property_is_not_a_configuration_element,
1546SR.Format(SR.Config_base_unrecognized_element_name, propertyName), reader);
1764throw new ConfigurationErrorsException(SR.Format(SR.Validator_does_not_support_elem_type,
1833throw new ConfigurationErrorsException(SR.Format(SR.Config_base_required_attribute_missing, name),
System\Configuration\ConfigurationElementCollection.cs (19)
510throw new ConfigurationErrorsException(SR.Format(SR.Config_base_element_locked, _addElement));
527SR.Format(SR.Config_base_collection_entry_already_exists, key),
628throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved, ElementName));
664throw new ConfigurationErrorsException(SR.Format(SR.IndexOutOfRange, index));
683if (index < -1) throw new ConfigurationErrorsException(SR.Format(SR.IndexOutOfRange, index));
714SR.Format(SR.Config_base_collection_entry_already_exists, key),
745SR.Format(SR.Config_base_collection_entry_not_found, key));
751throw new ConfigurationErrorsException(SR.Format(SR.Config_base_attribute_locked, key));
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));
978if (entry == null) throw new ConfigurationErrorsException(SR.Format(SR.IndexOutOfRange, index));
981throw new ConfigurationErrorsException(SR.Format(SR.Config_base_attribute_locked,
1064throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved,
1125SR.Format(SR.Config_base_unrecognized_attribute, propertyName), reader);
1141throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved, elementName));
1153throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved, elementName));
System\Configuration\HandlerBase.cs (6)
53SR.Format(SR.Config_invalid_boolean_attribute, a.Name),
75SR.Format(SR.Config_invalid_integer_attribute, a.Name), a);
85SR.Format(SR.Config_invalid_integer_attribute, a.Name),
103SR.Format(SR.Config_base_unrecognized_attribute, node.Attributes[0].Name),
135SR.Format(SR.Config_base_required_attribute_missing, name),
142SR.Format(SR.Config_base_required_attribute_empty, name),
System\Configuration\MgmtConfigurationRecord.cs (11)
199throw new ConfigurationErrorsException(SR.Format(SR.Config_unrecognized_configuration_section,
271SR.Format(SR.Config_exception_creating_section_handler, factoryRecord.ConfigKey),
417SR.Format(SR.Config_exception_in_config_section_handler,
488SR.Format(SR.Config_exception_in_config_section_handler,
570SR.Format(SR.Config_source_cannot_be_shared, newConfigSource));
607throw new ConfigurationErrorsException(SR.Format(SR.Config_unexpected_node_type, reader.NodeType));
613throw new ConfigurationErrorsException(SR.Format(SR.Config_unexpected_element_name, reader.Name));
973throw new ArgumentException(SR.Format(SR.Filename_in_SaveAs_is_used_already, filename));
1577SR.Format(SR.Config_inconsistent_location_attributes, configKey));
1697SR.Format(SR.Config_exception_in_config_section_handler,
1885SR.Format(SR.Config_exception_in_config_section_handler, sectionRecord.ConfigKey), e,
System\Diagnostics\ListenerElementsCollection.cs (8)
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));
225throw new ConfigurationErrorsException(SR.Format(SR.Could_not_create_listener, Name), e);
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));
365throw new ConfigurationErrorsException(SR.Format(SR.Could_not_create_listener, Name), e);