System\Configuration\BaseConfigurationRecord.cs (53)
1374throw new ConfigurationErrorsException(SR.Config_file_has_changed,
1498throw new ConfigurationErrorsException(
1506throw new ConfigurationErrorsException(SR.Config_source_file_format, xmlUtil);
1515throw new ConfigurationErrorsException(SR.Protection_provider_syntax_error, xmlUtil);
1530throw new ConfigurationErrorsException(SR.Config_source_file_format, xmlUtil);
1601throw new ConfigurationErrorsException(SR.Format(SR.ProtectedConfigurationProvider_not_found,
1629throw new ConfigurationErrorsException(SR.Config_object_is_null, filename, line);
1758throw new ConfigurationErrorsException(
1775ConfigurationErrorsException ce = new ConfigurationErrorsException(
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),
2002new ConfigurationErrorsException(
2020new ConfigurationErrorsException(
2030new ConfigurationErrorsException(SR.Format(SR.Config_tag_name_already_defined, tagName), xmlUtil),
2118_ => throw new ConfigurationErrorsException(
2130_ => throw new ConfigurationErrorsException(
2355new ConfigurationErrorsException(SR.Format(SR.Config_client_config_too_many_configsections_elements, tagName), xmlUtil),
2364new ConfigurationErrorsException(SR.Config_location_location_not_allowed, xmlUtil),
2396new ConfigurationErrorsException(
2472new ConfigurationErrorsException(
2487new ConfigurationErrorsException(
2510new ConfigurationErrorsException(SR.Config_section_locked, xmlUtil),
2535new ConfigurationErrorsException(SR.Config_source_syntax_error, xmlUtil),
2557new ConfigurationErrorsException(
2580new ConfigurationErrorsException(SR.Config_source_syntax_error, xmlUtil),
2723new ConfigurationErrorsException(SR.Invalid_override_mode_declaration, xmlUtil),
2742new ConfigurationErrorsException(SR.Invalid_override_mode_declaration,
2781throw new ConfigurationErrorsException(
2906new ConfigurationErrorsException(
2912new ConfigurationErrorsException(
2979locationSectionRecord.AddError(new ConfigurationErrorsException(
3028throw new ConfigurationErrorsException(SR.Config_tag_name_invalid, errorInfo);
3052throw new ConfigurationErrorsException(
3057throw new ConfigurationErrorsException(SR.Config_tag_name_cannot_begin_with_config, errorInfo);
3060throw new ConfigurationErrorsException(SR.Config_tag_name_cannot_be_location, errorInfo);
3082throw new ConfigurationErrorsException(SR.Config_location_path_invalid_first_character, errorInfo);
3086throw new ConfigurationErrorsException(SR.Config_location_path_invalid_first_character, errorInfo);
3092throw new ConfigurationErrorsException(SR.Config_location_path_invalid_last_character, errorInfo);
3096throw new ConfigurationErrorsException(SR.Config_location_path_invalid_last_character, errorInfo);
3100throw new ConfigurationErrorsException(SR.Config_location_path_invalid_character, errorInfo);
3199throw new ConfigurationErrorsException(SR.Config_source_invalid_format, errorInfo);
3203throw new ConfigurationErrorsException(SR.Config_source_invalid_format, errorInfo);
3206throw new ConfigurationErrorsException(SR.Config_source_invalid_format, errorInfo);
3212throw new ConfigurationErrorsException(SR.Config_source_invalid_format, errorInfo);
3229throw new ConfigurationErrorsException(SR.Format(SR.Config_source_cannot_be_shared,
3315throw new ConfigurationErrorsException(
3341throw new ConfigurationErrorsException(
3558throw new ConfigurationErrorsException(SR.Protection_provider_invalid_format, errorInfo);
3579throw new ConfigurationErrorsException(SR.EncryptedNode_not_found, filename, lineNumber);
3595throw new ConfigurationErrorsException(SR.EncryptedNode_not_found, filename, lineNumber);
3600throw new ConfigurationErrorsException(SR.EncryptedNode_is_in_invalid_format, filename, lineNumber);
3616throw new ConfigurationErrorsException(
3630throw new ConfigurationErrorsException(SR.EncryptedNode_is_in_invalid_format, filename, lineNumber);
System\Configuration\ConfigurationElement.cs (31)
109throw new ConfigurationErrorsException(SR.Format(SR.Config_base_attribute_locked, LockItemKey));
213throw new ConfigurationErrorsException(SR.Config_element_no_context);
396throw new ConfigurationErrorsException(
489ConfigurationErrorsException e = new ConfigurationErrorsException(errorsList);
523throw new ConfigurationErrorsException(SR.Format(SR.Config_base_element_locked, elementName),
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(
1265throw new ConfigurationErrorsException(
1270throw new ConfigurationErrorsException(SR.Format(format,
1286throw new ConfigurationErrorsException(SR.Format(SR.Empty_attribute, LockAttributesKey),
1289throw new ConfigurationErrorsException(SR.Format(SR.Empty_attribute, LockElementsKey),
1292throw new ConfigurationErrorsException(
1296throw new ConfigurationErrorsException(
1352throw new ConfigurationErrorsException(
1413throw new ConfigurationErrorsException(SR.Format(SR.Config_base_element_locked, reader.Name), reader);
1429throw new ConfigurationErrorsException(
1439throw new ConfigurationErrorsException(
1460throw new ConfigurationErrorsException(
1484throw new ConfigurationErrorsException(
1517throw new ConfigurationErrorsException(
1532throw new ConfigurationErrorsException(
1545throw new ConfigurationErrorsException(
1557throw new ConfigurationErrorsException(
1572throw new ConfigurationErrorsException(e.Message, reader); // give it some info
1731if (string.IsNullOrEmpty(ce.Filename)) ce = new ConfigurationErrorsException(ce.Message, reader);
1764throw new ConfigurationErrorsException(SR.Format(SR.Validator_does_not_support_elem_type,
1780throw new ConfigurationErrorsException(SR.Format(SR.Validator_element_not_valid, elem.ElementTagName,
1833throw new ConfigurationErrorsException(SR.Format(SR.Config_base_required_attribute_missing, name),
System\Configuration\ConfigurationElementCollection.cs (35)
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);
526throw new ConfigurationErrorsException(
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));
713throw new ConfigurationErrorsException(
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);
1124throw new ConfigurationErrorsException(
1193throw new ConfigurationErrorsException(SR.Config_base_invalid_element_key);
System\Configuration\MgmtConfigurationRecord.cs (21)
199throw new ConfigurationErrorsException(SR.Format(SR.Config_unrecognized_configuration_section,
270throw new ConfigurationErrorsException(
416throw new ConfigurationErrorsException(
487throw new ConfigurationErrorsException(
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));
622throw new ConfigurationErrorsException(SR.Config_unexpected_element_end,
634throw new ConfigurationErrorsException(SR.Config_invalid_node_type, reader);
640throw new ConfigurationErrorsException(SR.Config_more_data_than_expected, reader);
1020throw new ConfigurationErrorsException(SR.Config_file_has_changed,
1027throw new ConfigurationErrorsException(SR.Config_data_read_count_mismatch);
1049throw new ConfigurationErrorsException(SR.Config_file_has_changed, changedStreamName, 0);
1116throw new ConfigurationErrorsException(SR.Config_file_has_changed,
1576throw new ConfigurationErrorsException(
1676throw new ConfigurationErrorsException(
1696throw new ConfigurationErrorsException(
1706throw new ConfigurationErrorsException(SR.Config_section_locked, (IConfigErrorInfo)null);
1884throw new ConfigurationErrorsException(
2996if (count != streamRead.Length) throw new ConfigurationErrorsException();
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);