9902 references to InvalidOperationException
Analyzer.Utilities.UnitTests (1)
AnalyzerRunner (1)
aspire (21)
Aspire.Azure.AI.Inference (1)
Aspire.Azure.AI.OpenAI (2)
Aspire.Azure.Data.Tables (1)
Aspire.Azure.Messaging.EventHubs (6)
Aspire.Azure.Messaging.EventHubs.Tests (1)
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Azure.Messaging.WebPubSub (2)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (3)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
Aspire.Azure.Npgsql.Tests (1)
Aspire.Azure.Search.Documents (1)
Aspire.Azure.Security.KeyVault (2)
Aspire.Azure.Security.KeyVault.Tests (1)
Aspire.Azure.Storage.Blobs (3)
Aspire.Azure.Storage.Queues (1)
Aspire.Cli.Tests (9)
Aspire.Confluent.Kafka (3)
Aspire.Dashboard (39)
Aspire.Dashboard.Components.Tests (14)
Aspire.Dashboard.Tests (5)
Aspire.EndToEnd.Tests (11)
Aspire.Hosting (81)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (16)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Azure.AppService (3)
Aspire.Hosting.Azure.CosmosDB (2)
Aspire.Hosting.Azure.EventHubs (2)
Aspire.Hosting.Azure.KeyVault (1)
Aspire.Hosting.Azure.PostgreSQL (1)
Aspire.Hosting.Azure.ServiceBus (2)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Storage (5)
Aspire.Hosting.Docker (10)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Kafka (1)
Aspire.Hosting.Kafka.Tests (1)
Aspire.Hosting.Kubernetes (9)
Aspire.Hosting.MongoDB (2)
Aspire.Hosting.MySql (3)
Aspire.Hosting.MySql.Tests (1)
Aspire.Hosting.NodeJs.Tests (2)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.Orleans (1)
Aspire.Hosting.PostgreSQL (3)
Aspire.Hosting.PostgreSQL.Tests (1)
Aspire.Hosting.Python.Tests (2)
Aspire.Hosting.Qdrant (3)
Aspire.Hosting.RabbitMQ.Tests (1)
Aspire.Hosting.Redis (1)
Aspire.Hosting.SqlServer (3)
Aspire.Hosting.Testing (9)
Aspire.Hosting.Testing.Tests (2)
Aspire.Hosting.Tests (29)
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Valkey.Tests (1)
Aspire.Hosting.Yarp (1)
Aspire.Microsoft.Azure.Cosmos (6)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.Data.SqlClient.Tests (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (1)
Aspire.Milvus.Client (1)
Aspire.Milvus.Client.Tests (1)
Aspire.MongoDB.Driver (1)
Aspire.MongoDB.Driver.Tests (1)
Aspire.MongoDB.Driver.v3.Tests (1)
Aspire.MySqlConnector (1)
Aspire.MySqlConnector.Tests (1)
Aspire.NATS.Net (1)
Aspire.NATS.Net.Tests (1)
Aspire.Npgsql (1)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (6)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
Aspire.Npgsql.Tests (1)
Aspire.OpenAI (3)
Aspire.Oracle.EntityFrameworkCore (6)
Aspire.Oracle.EntityFrameworkCore.Tests (1)
Aspire.Playground.Tests (1)
Aspire.Pomelo.EntityFrameworkCore.MySql (7)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (1)
Aspire.Qdrant.Client (1)
Aspire.Qdrant.Client.Tests (1)
Aspire.RabbitMQ.Client.Tests (3)
Aspire.RabbitMQ.Client.v7.Tests (3)
Aspire.RuntimeIdentifier.Tool (1)
Aspire.Seq (1)
Aspire.StackExchange.Redis (1)
Aspire.StackExchange.Redis.Tests (1)
Aspire.Templates.Tests (10)
BasicTestApp (3)
BasicWebSite (10)
Benchmarks (1)
BoundTreeGenerator (2)
BuildActionTelemetryTable (3)
BuildBoss (1)
BuildValidator (2)
ClientSample (3)
CodeGenerator (1)
CodeStyleConfigFileGenerator (4)
ConfigurationSchemaGenerator (6)
csc (5)
CSharpSyntaxGenerator (5)
DemoConsole (3)
Diagnostics.EFCore.FunctionalTests (1)
dotnet-dev-certs (11)
dotnet-getdocument (1)
dotnet-openapi (1)
dotnet-razorpagegenerator (1)
dotnet-sql-cache (1)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (1034)
CodeDomFixup\MethodCreationHelper.cs (5)
211throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.ErrBindingTypeNotSupportedFormat, binding.GetType().FullName));
1084throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.ErrBindingElementNotSupportedFormat, bindingElement.GetType().FullName));
1632throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.ErrEncodingNotSupportedFormat, encoding.WebName));
1658throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.ErrMessageVersionNotSupportedFormat, messageVersion));
1676throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.ErrMessageVersionNotSupportedFormat, messagingVersion));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (9)
383throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], s_methodNames[(int)ValidatorState.Start] }));
393throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], s_methodNames[(int)ValidatorState.Start] }));
931throw new InvalidOperationException(ResXml.Sch_InvalidEndElementCall);
940throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.SkipToEndElement]));
972throw new InvalidOperationException(ResXml.Sch_InvalidEndValidation);
1201throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.EndElement]));
1251throw new InvalidOperationException(ResXml.Sch_InvalidEndElementCallTyped);
2111throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidStartTransition, new string[] { methodName, s_methodNames[(int)ValidatorState.Start] }));
2113throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], methodName }));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (15)
236throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidNameChars, Name));
610throw new InvalidOperationException(string.Format(ResXml.XmlHiddenMember, parent, member.Name, member.TypeDesc.FullName, this.TypeName, _members[i].Name, _members[i].TypeDesc.FullName));
613throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXmlOverride, parent, member.Name, this.TypeName, _members[i].Name));
638throw new InvalidOperationException(string.Format(ResXml.XmlIllegalSimpleContentExtension, TypeDesc.FullName, BaseMapping.TypeDesc.FullName));
651throw new InvalidOperationException(string.Format(ResXml.XmlIllegalTypedTextAttribute, TypeDesc.FullName, text.Name, text.Mapping.TypeDesc.FullName));
1152throw new InvalidOperationException(string.Format(ResXml.XmlCircularDerivation, TypeDesc.FullName));
1276throw new InvalidOperationException(string.Format(ResXml.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message));
1309throw new InvalidOperationException(string.Format(ResXml.XmlSerializableRootDupName, _getSchemaMethod.DeclaringType.FullName, e.Name, elementNs));
1363throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaEmptyTypeName, _type.FullName, _getSchemaMethod.Name));
1368throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaMethodReturnType, _type.Name, _getSchemaMethod.Name, typeof(XmlSchemaProviderAttribute).Name, typeof(XmlQualifiedName).FullName));
1391throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, _xsiType.Namespace));
1395throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaInclude, _xsiType.Namespace, _getSchemaMethod.DeclaringType.FullName, _getSchemaMethod.Name));
1400throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, _xsiType.Namespace));
1405throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaTypeMissing, _getSchemaMethod.DeclaringType.FullName, _getSchemaMethod.Name, _xsiType.Name, _xsiType.Namespace));
1418if (_schema.Id == null || _schema.Id.Length == 0) throw new InvalidOperationException(string.Format(ResXml.XmlSerializableNameMissing1, _type.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (20)
202throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDataTypeUsage, dataType, "SoapElementAttribute.DataType"));
207throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXsdDataType, dataType, "SoapElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString()));
211throw new InvalidOperationException(string.Format(ResXml.XmlDataTypeMismatch, dataType, "SoapElementAttribute.DataType", model.TypeDesc.FullName));
218throw new InvalidOperationException(string.Format(ResXml.XmlInvalidTypeAttributes, model.Type.FullName));
284throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, mapping.TypeDesc.FullName, typeName, ns));
306throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.Namespace));
311throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.Namespace));
369throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed"));
371throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed"));
531throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSoapArray, mapping.TypeDesc.FullName));
571throw new InvalidOperationException(string.Format(ResXml.XmlUdeclaredXsdType, dataType));
612throw new InvalidOperationException(string.Format(ResXml.XmlNoSerializableMembers, model.TypeDesc.FullName));
624throw new InvalidOperationException(ResXml.XmlInvalidEnumAttribute);
648if (i > 0) throw new InvalidOperationException(ResXml.XmlInvalidReturnPosition);
716throw new InvalidOperationException(ResXml.XmlInvalidVoid);
723throw new InvalidOperationException(string.Format(ResXml.XmlIllegalSoapAttribute, accessorName, accessor.TypeDesc.FullName));
726throw new InvalidOperationException(ResXml.XmlInvalidElementAttribute);
740throw new InvalidOperationException(ResXml.XmlInvalidElementAttribute);
776throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultEnumValue, a.SoapDefaultValue.GetType().FullName, fieldTypeDesc.FullName));
780throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, strValue, a.SoapDefaultValue.GetType().FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (19)
65throw new InvalidOperationException(string.Format(ResXml.XmlPrimitiveBaseType, name.Name, name.Namespace, baseType.FullName));
169throw new InvalidOperationException(string.Format(ResXml.RefSyntaxNotSupportedForElements0, element.RefName.Name, element.RefName.Namespace));
175throw new InvalidOperationException(string.Format(ResXml.XmlElementHasNoName, parentType.Name, parentType.Namespace));
202throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name));
207throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name));
213throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSubstitutionGroupUse, parentType.Name, parentType.Namespace));
218throw new InvalidOperationException(string.Format(ResXml.XmlElementMissingType, parentType.Name, parentType.Namespace, element.Name));
261throw new InvalidOperationException(ResXml.XmlInternalError);
301throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name));
347throw new InvalidOperationException(string.Format(ResXml.XmlInvalidAnyAttributeUse, type.Name, type.QualifiedName.Namespace));
356throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace));
361if (attr.Use != XmlSchemaUse.Prohibited) throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace));
395throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidChoice, parentType.Name, parentType.Namespace));
406throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupRef, parentType.Name, parentType.Namespace));
412throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupRepeat, parentType.Name, parentType.Namespace));
417throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupNested, parentType.Name, parentType.Namespace));
421throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupAny, parentType.Name, parentType.Namespace));
638throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEnumContent, dataType.Content.GetType().Name, identifier));
721throw new InvalidOperationException(string.Format(ResXml.XmlMissingDataType, name.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (9)
402_exception = new InvalidOperationException(string.Format(ResXml.XmlConstructorInaccessible, FullName));
729throw new InvalidOperationException(string.Format(ResXml.XmlUnsupportedOpenGenericType, type.ToString()));
797exception = new InvalidOperationException(string.Format(ResXml.XmlTypeInaccessible, type.FullName));
802exception = new InvalidOperationException(string.Format(ResXml.XmlTypeStatic, type.FullName));
1126throw new InvalidOperationException(string.Format(ResXml.XmlReadOnlyPropertyError, propertyInfo.DeclaringType, propertyInfo.Name));
1330throw new InvalidOperationException(string.Format(ResXml.XmlNoAddMethod, type.FullName, currentType, "IEnumerable"));
1381throw new InvalidOperationException(string.Format(ResXml.XmlNoDefaultAccessors, type.FullName));
1386throw new InvalidOperationException(string.Format(ResXml.XmlNoAddMethod, type.FullName, indexer.PropertyType, "ICollection"));
1414throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayTypeSyntax, type));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (95)
130throw new InvalidOperationException(string.Format(ResXml.XmlAnonymousInclude, type.FullName));
280throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, model.TypeDesc.BaseTypeDesc.FullName, "XmlRoot"));
335throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessorDefault, accessor.Name, accessor.Namespace, value1, value2));
340throw new InvalidOperationException(string.Format(ResXml.XmlMethodTypeNameConflict, accessor.Name, accessor.Namespace));
346throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping)));
363throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAttributeAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping)));
365throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping)));
397throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDataTypeUsage, dataType, "XmlElementAttribute.DataType"));
402throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXsdDataType, dataType, "XmlElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString()));
406throw new InvalidOperationException(string.Format(ResXml.XmlDataTypeMismatch, dataType, "XmlElementAttribute.DataType", modelTypeDesc.FullName));
414throw new InvalidOperationException(string.Format(ResXml.XmlInvalidTypeAttributes, model.Type.FullName));
455throw new InvalidOperationException(string.Format(ResXml.XmlSerializableAttributes, model.TypeDesc.FullName, typeof(XmlSchemaProviderAttribute).Name));
493throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaMethodMissing, provider.MethodName, typeof(XmlSchemaSet).Name, type.FullName));
496throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaMethodReturnType, type.Name, provider.MethodName, typeof(XmlSchemaProviderAttribute).Name, typeof(XmlQualifiedName).FullName, typeof(XmlSchemaType).FullName));
582throw new InvalidOperationException(string.Format(ResXml.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message));
594throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, baseQname.Namespace));
598throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaInclude, baseQname.Namespace, typeof(IXmlSerializable).Name, "GetSchema"));
628return new InvalidOperationException(string.Format(ResXml.XmlInvalidAttributeUse, type.FullName));
633return new InvalidOperationException(string.Format(ResXml.XmlIllegalTypeContext, typeDesc.FullName, GetContextName(context)));
675throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.Namespace));
680throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.Namespace));
722throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, mapping.TypeDesc.FullName, typeName, ns));
778throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed"));
780throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed"));
871throw new InvalidOperationException(string.Format(ResXml.XmlIllegalTypedTextAttribute, typeName, member.Text.Name, member.Text.Mapping.TypeDesc.FullName));
874throw new InvalidOperationException(string.Format(ResXml.XmlIllegalMultipleText, model.Type.FullName));
881throw new InvalidOperationException(string.Format(ResXml.XmlMultipleXmlns, model.Type.FullName));
912throw new InvalidOperationException(string.Format(ResXml.XmlSequenceUnique, member.SequenceId.ToString(), "Order", member.Name));
918throw new InvalidOperationException(string.Format(ResXml.XmlSequenceInconsistent, "Order", member.Name));
928throw new InvalidOperationException(string.Format(ResXml.XmlMultipleXmlns, model.Type.FullName));
1169throw new InvalidOperationException(string.Format(ResXml.XmlUdeclaredXsdType, dataType));
1203throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttributeFlagsArray, model.TypeDesc.FullName));
1218throw new InvalidOperationException(string.Format(ResXml.XmlNoSerializableMembers, model.TypeDesc.FullName));
1231throw new InvalidOperationException(ResXml.XmlInvalidConstantAttribute);
1263throw new InvalidOperationException(ResXml.XmlRpcLitAttributeAttributes);
1267throw new InvalidOperationException(string.Format(ResXml.XmlInvalidAttributeType, "XmlAttribute"));
1273if (i > 0) throw new InvalidOperationException(ResXml.XmlInvalidReturnPosition);
1289throw new InvalidOperationException(ResXml.XmlIllegalMultipleTextMembers);
1297throw new InvalidOperationException(ResXml.XmlMultipleXmlnsMembers);
1312throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMembers, "Order"));
1425throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierType, identifierName, memberName, type.GetElementType().FullName));
1432throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierArrayType, identifierName, memberName, type.FullName));
1438throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierTypeEnum, identifierName));
1453throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMemberMissing, choice.MemberName, accessorName));
1469throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMemberMissing, choice.MemberName, accessorName));
1476throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferAmbiguous, choice.MemberName));
1483throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMemberMissing, choice.MemberName, accessorName));
1562throw new InvalidOperationException(ResXml.XmlIllegalAttributesArrayAttribute);
1568throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName, typeof(IXmlSerializable).Name));
1572throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName));
1610throw new InvalidOperationException(ResXml.XmlIllegalElementsArrayAttribute);
1620throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayTextAttribute, accessorName));
1648throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc.FullName, "XmlElement"));
1661throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order"));
1673throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, arrayElementType.FullName));
1684throw new InvalidOperationException(string.Format(ResXml.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace == null ? "null" : xmlAnyElement.Namespace));
1711throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order"));
1721throw new InvalidOperationException(ResXml.XmlIllegalArrayArrayAttribute);
1756throw new InvalidOperationException(ResXml.XmlIllegalAttribute);
1760if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, accessor.TypeDesc.FullName));
1764if (a.XmlElements.Count > 0) throw new InvalidOperationException(ResXml.XmlIllegalAttribute);
1765if (a.XmlAttribute.Type != null) throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlAttribute"));
1792throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlText"));
1809throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlElement"));
1823throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc.FullName, "XmlElement"));
1836throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order"));
1847throw new InvalidOperationException(ResXml.XmlSoleXmlnsAttribute);
1851throw new InvalidOperationException(string.Format(ResXml.XmlXmlnsInvalidType, accessorName, accessorType.FullName, typeof(XmlSerializerNamespaces).FullName));
1862throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.FullName, typeof(IXmlSerializable).Name));
1866throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc));
1891throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc.FullName, "XmlElement"));
1904throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order"));
1916throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, accessorType.FullName));
1928throw new InvalidOperationException(string.Format(ResXml.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace == null ? "null" : xmlAnyElement.Namespace));
1953throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order"));
1967throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitArrayElement, accessor.Elements[0].Name));
1970throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitXmlns, accessor.Name));
2016throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName));
2022throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName, id, element.Name, element.Namespace));
2038throw new InvalidOperationException(ResXml.XmlRpcLitAttributeAttributes);
2041throw new InvalidOperationException(ResXml.XmlRpcLitAttributes);
2047throw new InvalidOperationException(ResXml.XmlRpcLitElements);
2052throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitElementNamespace, "Namespace", xmlElement.Namespace));
2056throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitElementNullable, "IsNullable", "true"));
2061throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitElementNamespace, "Namespace", a.XmlArray.Namespace));
2078throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMissing, typeof(XmlChoiceIdentifierAttribute).Name, accessorName));
2089throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMissing, typeof(XmlChoiceIdentifierAttribute).Name, accessorName));
2104throw new InvalidOperationException(string.Format(ResXml.XmlArrayItemAmbiguousTypes, accessorName, item.ElementName, items[i].ElementName, typeof(XmlElementAttribute).Name, typeof(XmlChoiceIdentifierAttribute).Name, accessorName));
2127throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdDuplicate, choiceMapping.TypeName, choiceId));
2148throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, strValue, a.XmlDefaultValue.GetType().FullName));
2181throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementName, existing.Name, existing.Namespace));
2187throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Bad accessor type " + accessor.GetType().FullName));
2189throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateAttributeName, existing.Name, existing.Namespace));
2215if (isQualified && form == XmlSchemaForm.Unqualified) throw new InvalidOperationException(ResXml.XmlInvalidFormUnqualified);
2222if (isNullable && !typeDesc.IsNullable) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidIsNullable, typeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (24)
103throw new InvalidOperationException(string.Format(ResXml.XmlBareAttributeMember, member.Attribute.Name));
105throw new InvalidOperationException(string.Format(ResXml.XmlBareTextMember, member.Text.Name));
110throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayElement, member.Elements[0].Name));
252throw new InvalidOperationException(ResXml.XmlMappingsScopeMismatch);
263throw new InvalidOperationException(ResXml.XmlIllegalWildcard);
288throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateTypeName, newTypeName, newNamespace));
319throw new InvalidOperationException(string.Format(ResXml.XmlIllegalForm, e.Name));
326throw new InvalidOperationException(string.Format(ResXml.XmlIllegalForm, a.Name));
550throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateNamespace, anyNs));
601throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Unsuported anonymous mapping type: " + mapping.ToString()));
658throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Type " + mapping.TypeName + " from namespace '" + ns + "' is an invalid array mapping"));
720throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
833throw new InvalidOperationException(ResXml.XmlInternalError);
919if (value.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), value.GetType().FullName)));
959throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Mapping for " + pm.TypeDesc.Name + " missing type property"));
975throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), pm.TypeDesc.Name));
978throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), pm.TypeDesc.Name));
1012throw new InvalidOperationException(string.Format(ResXml.XmlCircularReference2, mapping.TypeDesc.Name, "AnonymousType", "false"));
1018if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlCannotIncludeInSchema, mapping.TypeDesc.Name));
1033throw new InvalidOperationException(string.Format(ResXml.XmlAnonymousBaseType, mapping.TypeDesc.Name, mapping.BaseMapping.TypeDesc.Name, "AnonymousType", "false"));
1094throw new InvalidOperationException(string.Format(ResXml.XmlIllegalMultipleText, name));
1117throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
1139throw new InvalidOperationException(string.Format(ResXml.XmlAnonymousBaseType, textMapping.TypeDesc.Name, pm.TypeDesc.Name, "AnonymousType", "false"));
1186if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlCannotIncludeInSchema, mapping.TypeDesc.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (19)
110throw new InvalidOperationException(string.Format(ResXml.XmlBadBaseElement, name.Name, name.Namespace, baseType.FullName));
170throw new InvalidOperationException(string.Format(ResXml.XmlBadBaseType, typeName.Name, typeName.Namespace, baseType.FullName));
332throw new InvalidOperationException(string.Format(ResXml.XmlElementHasNoName, parentType.Name, parentType.Namespace));
410throw new InvalidOperationException(string.Format(ResXml.XmlElementImportedTwice, element.Name, ns, mapping.GetType().Name, desiredMappingType.Name));
453throw new InvalidOperationException(string.Format(ResXml.XmlImporterExtensionBadLocalTypeName, typeOwner.GetType().FullName, typeName));
457throw new InvalidOperationException(string.Format(ResXml.XmlImporterExtensionBadTypeName, typeOwner.GetType().FullName, qname.Name, qname.Namespace, typeName));
545throw new InvalidOperationException(ResXml.XmlInternalError);
588if (!type.DerivedFrom.IsEmpty) throw new InvalidOperationException(ResXml.XmlMembersDeriveError);
649throw new InvalidOperationException(string.Format(ResXml.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace));
696throw new InvalidOperationException(string.Format(ResXml.XmlIllegalOverride, type.Name, baseMember.Name, baseMember.TypeDesc.FullName, structMapping.Members[i].TypeDesc.FullName, declaringMapping.TypeDesc.FullName));
1097throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope, element.Name, element.Namespace));
1101throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope1, element.Name, element.Namespace));
1713if (attribute.Name.Length == 0) throw new InvalidOperationException(ResXml.XmlAttributeHasNoName);
1959throw new InvalidOperationException(string.Format(ResXml.XmlMissingGroup, name.Name));
1968throw new InvalidOperationException(string.Format(ResXml.XmlMissingAttributeGroup, name.Name));
2030throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncoding, name.ToString()));
2034throw new InvalidOperationException(string.Format(ResXml.XmlMissingDataType, name.ToString()));
2057throw new InvalidOperationException(string.Format(ResXml.XmlMissingElement, name.ToString()));
2065throw new InvalidOperationException(string.Format(ResXml.XmlMissingAttribute, name.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (18)
988if (arrayInfo.dimensions != 1) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag()));
990if (qname.Name != name) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayTypeName, qname.Name, name, CurrentTag()));
991if (qname.Namespace != ns) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayTypeNamespace, qname.Namespace, ns, CurrentTag()));
1220throw new InvalidOperationException(string.Format(ResXml.XmlUndefinedAlias, prefix));
1365return new InvalidOperationException(string.Format(ResXml.XmlUnknownType, type.Name, type.Namespace, CurrentTag()));
1371return new InvalidOperationException(string.Format(ResXml.XmlReadOnlyCollection, name));
1377return new InvalidOperationException(string.Format(ResXml.XmlAbstractType, name, ns, CurrentTag()));
1383return new InvalidOperationException(string.Format(ResXml.XmlConstructorInaccessible, typeName));
1389return new InvalidOperationException(string.Format(ResXml.XmlConstructorHasSecurityAttributes, typeName));
1395return new InvalidOperationException(string.Format(ResXml.XmlUnknownNode, CurrentTag()));
1401return new InvalidOperationException(string.Format(ResXml.XmlUnknownConstant, value, enumType.Name));
1424return new InvalidOperationException(string.Format(ResXml.XmlSerializableBadDerivation, xsdDerived, nsDerived, xsdBase, nsBase, clrDerived, clrBase));
1430return new InvalidOperationException(string.Format(ResXml.XmlSerializableMissingClrType, name, ns, typeof(XmlIncludeAttribute).Name, clrType));
1520if (!href.StartsWith("#", StringComparison.Ordinal)) throw new InvalidOperationException(string.Format(ResXml.XmlMissingHref, href));
1578throw new InvalidOperationException(string.Format(ResXml.XmlInvalidHref, id));
1649throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayRef, id, o.GetType().FullName, i.ToString()));
1680if (arrayInfo.dimensions != 1) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag()));
2074throw new InvalidOperationException(ResXml.XmlInternalErrorReaderAdvance);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (30)
468if (_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(string.Format(ResXml.XmlCircularReference, o.GetType().FullName));
517throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXmlns, alias));
642if (!_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "missing stack object of type " + o.GetType().FullName));
779throw new InvalidOperationException(ResXml.XmlNoAttributeHere);
795throw new InvalidOperationException(string.Format(ResXml.XmlElementNameMismatch, node.LocalName, node.NamespaceURI, name, ns));
816if (typeof(IXmlSerializable).IsAssignableFrom(type)) return new InvalidOperationException(string.Format(ResXml.XmlInvalidSerializable, type.FullName));
818if (!typeDesc.IsStructLike) return new InvalidOperationException(string.Format(ResXml.XmlInvalidUseOfType, type.FullName));
819return new InvalidOperationException(string.Format(ResXml.XmlUnxpectedType, type.FullName));
826return new InvalidOperationException(string.Format(ResXml.XmlChoiceMismatchChoiceException, elementName, value, enumValue));
832return new InvalidOperationException(string.Format(ResXml.XmlUnknownAnyElement, name, ns));
838return new InvalidOperationException(string.Format(ResXml.XmlInvalidChoiceIdentifierValue, type, identifier));
845return new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierMismatch, value, identifier, name, ns));
851return new InvalidOperationException(string.Format(ResXml.XmlUnknownConstant, value, typeName));
863return new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, type.FullName));
935if (attr == null) throw new InvalidOperationException(ResXml.XmlNeedAttributeHere);
1319if (!typeof(IEnumerable).IsAssignableFrom(type)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "not array like type " + type.FullName));
1483throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateNs, prefix, ns));
1680if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace);
1727if (defaultValue.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name));
2026if (enumSource == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
2254if (methodName == null) throw new InvalidOperationException("deriaved from " + mapping.TypeDesc.FullName + ", " + string.Format(ResXml.XmlInternalErrorMethod, derived.TypeDesc.Name) + Environment.StackTrace);
2292if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace);
2737throw new InvalidOperationException(ResXml.XmlInternalError);
3164throw new InvalidOperationException(ResXml.XmlInternalError);
3376if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace);
3441throw new InvalidOperationException(ResXml.XmlInternalError);
3590throw new InvalidOperationException(string.Format(ResXml.XmlUnsupportedDefaultType, type.FullName));
3700throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc.FullName));
3703throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.Namespace + ":" + element.Name, element.Name, element.Namespace));
4018throw new InvalidOperationException(string.Format(ResXml.XmlSerializerUnsupportedType, memberInfos[0].ToString()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
132if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace);
204if (defaultValue.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name));
530if (enumSource == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
772if (methodName == null) throw new InvalidOperationException("deriaved from " + mapping.TypeDesc.FullName + ", " + string.Format(ResXml.XmlInternalErrorMethod, derived.TypeDesc.Name) + Environment.StackTrace);
823if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace);
1459throw new InvalidOperationException(ResXml.XmlInternalError);
2003throw new InvalidOperationException(ResXml.XmlInternalError);
2111if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace);
2184throw new InvalidOperationException(ResXml.XmlInternalError);
2412throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc.FullName));
2415throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.Namespace + ":" + element.Name, element.Name, element.Namespace));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (7)
88throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CLRNamespaceMappedMultipleTimes, currentDataContractNamespace, dataContractNamespace, clrNamespace)));
551throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace)));
569throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace)));
583throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.ReferencedTypeDoesNotMatch,
1055throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CannotDeriveFromSealedReferenceType, dataContract.StableName.Name, dataContract.StableName.Namespace, DataContract.GetClrTypeFullName(baseType))));
1129throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
1155throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.ReferencedBaseTypeDoesNotExist,
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (25)
102throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlWriterClosed)));
139throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString())));
164throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString())));
192throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartAttribute", WriteState.ToString())));
299throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteEndAttribute", WriteState.ToString())));
411throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteComment", WriteState.ToString())));
437throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteFullEndElement", WriteState.ToString())));
449throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteCData", WriteState.ToString())));
474throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlOnlyOneRoot)));
480throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString())));
519throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlOnlyOneRoot)));
525throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString())));
587throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidDepth, "WriteEndElement", _depth.ToString(CultureInfo.InvariantCulture))));
666throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlIllegalOutsideRoot)));
673throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlIllegalOutsideRoot)));
700throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlIllegalOutsideRoot)));
707throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlIllegalOutsideRoot)));
714throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlIllegalOutsideRoot)));
836throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartDocument", WriteState.ToString())));
861throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidDeclaration)));
888throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlNoRootElement)));
1590throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlOnlyOneRoot)));
1592throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlOnlyOneRoot)));
1594throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString())));
1605throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidPrefixState, WriteState.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelRequirements.cs (9)
235exception = new InvalidOperationException(string.Format(SRServiceModel.EndpointListenerRequirementsCannotBeMetBy3,
253exception = new InvalidOperationException(string.Format(SRServiceModel.CouldnTCreateChannelForType2, bindingName, contractChannelTypesString));
348return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportAnyChannelTypes1, bindingName));
352return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportSessionButContractRequires1, bindingName));
356return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesntSupportDatagramButContractRequires, bindingName));
360return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportDuplexButContractRequires1, bindingName));
364return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportRequestReplyButContract1, bindingName));
368return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportOneWayButContractRequires1, bindingName));
372return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportTwoWayButContractRequires1, bindingName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (21)
96throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenCopied), this);
98throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenRead), this);
100throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenWritten), this);
103throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.InvalidMessageState), this);
283throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageIsEmpty), this);
295throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenCopied), this);
297throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenRead), this);
299throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenWritten), this);
304throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.InvalidMessageState), this);
312throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.RequestMessageDoesNotHaveAMessageID), request);
522throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenCopied), this);
524throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenRead), this);
526throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenWritten), this);
531throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.InvalidMessageState), this);
666throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenCopied), this);
668throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenRead), this);
670throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenWritten), this);
675throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.InvalidMessageState), this);
760throw TraceUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix.")), this);
767throw TraceUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix.")), this);
1178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.MessageBodyReaderInvalidReadState, bodyReader.ReadState.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (17)
311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlOperationInputNeedsMessageAttribute2, wsdlOperation.Name, wsdlOperation.PortType.Name)));
313throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlOperationOutputNeedsMessageAttribute2, wsdlOperation.Name, wsdlOperation.PortType.Name)));
381throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlOperationInputNeedsMessageAttribute2, wsdlOperation.Name, wsdlOperation.PortType.Name)));
383throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlOperationOutputNeedsMessageAttribute2, wsdlOperation.Name, wsdlOperation.PortType.Name)));
780throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlMessageDoesNotContainPart3, name, message.Name, message.ServiceDescription.TargetNamespace)));
803throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxSchemaDoesNotContainElement, elementName.Name, elementName.Namespace)));
832throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxSchemaDoesNotContainType, typeName.Name, typeName.Namespace)));
1175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxSchemaNotFound, ns)));
1456throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlPartMustHaveElementOrType, part.Name, part.Message.Name, part.Message.Namespaces)));
1483throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlPartMustHaveElementOrType, part.Name, part.Message.Name, part.Message.Namespaces)));
1669throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportEncoded, part.Name)));
1700throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportBareArray, part.Name)));
1865throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportEncoded, operationName)));
1887throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportEncoded, operation.Name)));
2015throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.SFxDocEncodedFaultNotSupported));
2060throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDocEncodedNotSupported, part.Name)));
2110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDocEncodedNotSupported, operationName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (16)
150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Cannot generate unique name for name {0}", baseName)));
388throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxContractInheritanceRequiresInterfaces2, service, t)));
395throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ServicesWithoutAServiceContractAttributeCan2, operationContractProviderType.Name, method.Name, service.FullName)));
405throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxContractInheritanceRequiresInterfaces, service, t)));
537throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.tooManyAttributesOfTypeOn2, attrType, attrProvider.ToString())));
550throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.couldnTFindRequiredAttributeOfTypeOn2, typeof(T), attrProvider.ToString())));
570throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDisallowedAttributeCombination, attrProvider, attrType.FullName, otherType.FullName)));
582throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.couldnTFindRequiredAttributeOfTypeOn2, typeof(T), attrProvider.ToString())));
603throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.AttemptedToGetContractTypeForButThatTypeIs1, interfaceType.Name)));
623throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
666new InvalidOperationException(string.Format(SRServiceModel.SFxBadByValueParameterMetadata,
675new InvalidOperationException(string.Format(SRServiceModel.SFxBadByReferenceParameterMetadata,
793throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.NoEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName)));
797throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.MoreThanOneEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName)));
808throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidAsyncEndMethodSignatureForMethod2, endMethod.Name, endMethod.DeclaringType.FullName)));
841throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidAsyncBeginMethodSignatureForMethod2, method.Name, method.DeclaringType.FullName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (49)
111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
148throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
372throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeAttributeUnknownMethod3, provider, knownTypeAttribute.MethodName, type.FullName)));
375throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeAttributeReturnType3, provider, knownTypeAttribute.MethodName, type.FullName)));
386throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeAttributeInvalid1, provider.ToString())));
466new InvalidOperationException(string.Format(SRServiceModel.SyncAsyncMatchConsistency_Attributes6,
477new InvalidOperationException(string.Format(SRServiceModel.SyncTaskMatchConsistency_Attributes6,
487new InvalidOperationException(string.Format(SRServiceModel.TaskAsyncMatchConsistency_Attributes6,
682throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
724throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
730throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
782throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
858throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
882throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface)));
888throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface)));
894throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface)));
976throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.OneWayAndFaultsIncompatible2, methodInfo.DeclaringType.FullName, operationName.EncodedName)));
1057throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.ServiceOperationsMarkedWithIsOneWayTrueMust0));
1062throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.OneWayOperationShouldNotSpecifyAReplyAction1, operationName)));
1087throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
1090throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
1190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxMultipleUnknownHeaders, methodInfo, methodInfo.DeclaringType)));
1216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidMessageContractSignature, methodName)));
1221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidMessageContractSignature, methodName)));
1297throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxMessageContractBaseTypeNotValid, baseType, typedMessageType)));
1471throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxStaticMessageHeaderPropertiesNotAllowed, defaultName)));
1594new InvalidOperationException(string.Format(SRServiceModel.SyncAsyncMatchConsistency_Parameters5,
1610new InvalidOperationException(string.Format(SRServiceModel.SyncAsyncMatchConsistency_Parameters5,
1627new InvalidOperationException(string.Format(SRServiceModel.SyncAsyncMatchConsistency_Parameters5,
1642new InvalidOperationException(string.Format(SRServiceModel.SyncAsyncMatchConsistency_ReturnType5,
1656new InvalidOperationException(string.Format(SRServiceModel.SyncAsyncMatchConsistency_Attributes6,
1671new InvalidOperationException(string.Format(SRServiceModel.SyncAsyncMatchConsistency_Attributes6,
1686new InvalidOperationException(string.Format(SRServiceModel.SyncAsyncMatchConsistency_Property6,
1703new InvalidOperationException(string.Format(SRServiceModel.SyncAsyncMatchConsistency_Property6,
1735new InvalidOperationException(string.Format(SRServiceModel.SyncTaskMatchConsistency_Parameters5,
1750new InvalidOperationException(string.Format(SRServiceModel.SyncTaskMatchConsistency_Parameters5,
1764new InvalidOperationException(string.Format(SRServiceModel.SyncTaskMatchConsistency_ReturnType5,
1777new InvalidOperationException(string.Format(SRServiceModel.SyncTaskMatchConsistency_Attributes6,
1791new InvalidOperationException(string.Format(SRServiceModel.SyncTaskMatchConsistency_Attributes6,
1805new InvalidOperationException(string.Format(SRServiceModel.SyncTaskMatchConsistency_Property6,
1821new InvalidOperationException(string.Format(SRServiceModel.SyncTaskMatchConsistency_Property6,
1852new InvalidOperationException(string.Format(SRServiceModel.TaskAsyncMatchConsistency_Parameters5,
1868new InvalidOperationException(string.Format(SRServiceModel.TaskAsyncMatchConsistency_Parameters5,
1883new InvalidOperationException(string.Format(SRServiceModel.TaskAsyncMatchConsistency_ReturnType5,
1897new InvalidOperationException(string.Format(SRServiceModel.TaskAsyncMatchConsistency_Attributes6,
1912new InvalidOperationException(string.Format(SRServiceModel.TaskAsyncMatchConsistency_Attributes6,
1927new InvalidOperationException(string.Format(SRServiceModel.TaskAsyncMatchConsistency_Property6,
1944new InvalidOperationException(string.Format(SRServiceModel.TaskAsyncMatchConsistency_Property6,
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (17)
106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.WsdlImporterIsFaulted));
126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.WsdlImporterIsFaulted));
146throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.WsdlImporterIsFaulted));
167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.WsdlImporterIsFaulted));
178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.WsdlImporterIsFaulted));
189throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.WsdlImporterIsFaulted));
200throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.WsdlImporterIsFaulted));
223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.WsdlImporterIsFaulted));
248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.WsdlImporterIsFaulted));
274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.WsdlImporterIsFaulted));
775WsdlImportException wie = WsdlImportException.Create(item, new InvalidOperationException(errorMsg));
826WsdlImportException wie = WsdlImportException.Create(item, new InvalidOperationException(string.Format(SRServiceModel.UnknownWSDLExtensionIgnored, extension.GetType().AssemblyQualifiedName)));
877throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidWsdlBindingOpNoName, wsdlOperationBinding.Binding.Name)));
906throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidWsdlBindingOpMismatch2, wsdlOperationBinding.Binding.Name, wsdlOperationBinding.Name)));
989throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnableToLocateOperation2, wsdlOperationBinding.Name, contract.Name)));
1619throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsdlImportException.Create(endpointContext.WsdlPort, new InvalidOperationException(SRServiceModel.NoUsablePolicyAssertions)));
1623throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsdlImportException.Create(endpointContext.WsdlBinding, new InvalidOperationException(SRServiceModel.NoUsablePolicyAssertions)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (10)
344throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeNull, Operation.Name)));
355throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxRpcMessageBodyPartNameInvalid, Operation.Name, this.Operation.Messages[0].MessageName, _request.BodyMapping.XsdElementName, this.Operation.Name)));
361throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxRpcMessageBodyPartNameInvalid, Operation.Name, this.Operation.Messages[1].MessageName, _reply.BodyMapping.XsdElementName, responseName.EncodedName)));
421throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxHeaderNameMismatchInMessageContract, message.MessageType, header.MemberInfo.Name, header.Name, headerName)));
423throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxHeaderNameMismatchInOperation, this.Operation.Name, this.Operation.DeclaringContract.Name, this.Operation.DeclaringContract.Namespace, header.Name, headerName)));
428throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxHeaderNamespaceMismatchInMessageContract, message.MessageType, header.MemberInfo.Name, header.Namespace, headerNs)));
430throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxHeaderNamespaceMismatchInOperation, this.Operation.Name, this.Operation.DeclaringContract.Name, this.Operation.DeclaringContract.Namespace, header.Namespace, headerNs)));
525throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxFaultTypeAnonymous, this.Operation.Name, fault.DetailType.FullName)));
860throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(isWrapped ? SRServiceModel.SFxInvalidXmlAttributeInWrapped : SRServiceModel.SFxInvalidXmlAttributeInBare, invalidAttributeType, elementName.DecodedName)));
862throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxXmlArrayNotAllowedForMultiple, elementName.DecodedName, ns)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (5)
887throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.CannotFindCert, storeName, storeLocation, findType, findValue)));
941return new InvalidOperationException(string.Format(SRServiceModel.CannotFindCert, storeName, storeLocation, findType, findValue));
943return new InvalidOperationException(string.Format(SRServiceModel.CannotFindCertForTarget, storeName, storeLocation, findType, findValue, target));
947return new InvalidOperationException(string.Format(SRServiceModel.FoundMultipleCerts, storeName, storeLocation, findType, findValue));
949return new InvalidOperationException(string.Format(SRServiceModel.FoundMultipleCertsForTarget, storeName, storeLocation, findType, findValue, target));
dotnet-user-jwts (3)
dotnet-user-secrets (1)
ExceptionHandlerSample (1)
GenerateDocumentationAndConfigFiles (30)
Program.cs (4)
933onDuplicateEntryInRelease: (_1, _2, _3, _4, line) => throw new InvalidOperationException($"Duplicate entry in {shippedFile} at {line.LineNumber}: '{line}'"),
934onInvalidEntry: (line, _2, _3, _4) => throw new InvalidOperationException($"Invalid entry in {shippedFile} at {line.LineNumber}: '{line}'"),
943onDuplicateEntryInRelease: (_1, _2, _3, _4, line) => throw new InvalidOperationException($"Duplicate entry in {unshippedFile} at {line.LineNumber}: '{line}'"),
944onInvalidEntry: (line, _2, _3, _4) => throw new InvalidOperationException($"Invalid entry in {unshippedFile} at {line.LineNumber}: '{line}'"),
GenericHostWebSite (1)
GetDocument.Insider (4)
HealthChecksSandbox.AppHost (1)
HelixTestRunner (1)
http2cat (1)
HttpClientApp (2)
Identity.DefaultUI.WebSite (2)
IdentitySample.DefaultUI (2)
IdentitySample.PasskeyConformance (1)
IdentitySample.PasskeyUI (1)
IIS.FunctionalTests (8)
IIS.LongTests (6)
IIS.Microbenchmarks (1)
IIS.NewHandler.FunctionalTests (6)
IIS.NewShim.FunctionalTests (6)
IIS.ShadowCopy.Tests (6)
IIS.Tests (1)
IISExpress.FunctionalTests (8)
illink (18)
ILLink.RoslynAnalyzer (12)
ILLink.Tasks (1)
Infrastructure.Common (8)
InMemory.FunctionalTests (18)
InProcessWebSite (3)
Interop.FunctionalTests (16)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
InteropClient (11)
InteropTests (1)
IOperationGenerator (2)
Keycloak.Web (1)
KeyManagementSimulator (1)
Metrics (20)
Metrics.Legacy (20)
Microsoft.Analyzers.Local (4)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.Arcade.Common (3)
Microsoft.Arcade.Test.Common (3)
Microsoft.AspNetCore (5)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Antiforgery (3)
Microsoft.AspNetCore.App.Analyzers (14)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.AsyncState (1)
Microsoft.AspNetCore.Authentication (4)
Microsoft.AspNetCore.Authentication.Abstractions (3)
Microsoft.AspNetCore.Authentication.BearerToken (2)
Microsoft.AspNetCore.Authentication.Cookies (1)
Microsoft.AspNetCore.Authentication.Core (19)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
Microsoft.AspNetCore.Authentication.Negotiate (5)
Microsoft.AspNetCore.Authentication.Negotiate.Test (8)
Microsoft.AspNetCore.Authentication.OpenIdConnect (10)
Microsoft.AspNetCore.Authentication.Test (8)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Authorization (4)
Microsoft.AspNetCore.Authorization.Policy (1)
Microsoft.AspNetCore.Authorization.Test (1)
Microsoft.AspNetCore.BrowserTesting (5)
Microsoft.AspNetCore.Components (109)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.Authorization (2)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
Microsoft.AspNetCore.Components.Endpoints (77)
Microsoft.AspNetCore.Components.Endpoints.Tests (12)
Microsoft.AspNetCore.Components.Forms (8)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.Performance (1)
Microsoft.AspNetCore.Components.QuickGrid (3)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Components.Server (35)
Microsoft.AspNetCore.Components.Server.Tests (9)
Microsoft.AspNetCore.Components.Tests (16)
Microsoft.AspNetCore.Components.Web (47)
Microsoft.AspNetCore.Components.Web.Tests (2)
Microsoft.AspNetCore.Components.WebAssembly (27)
Microsoft.AspNetCore.Components.WebAssembly.Server (8)
Microsoft.AspNetCore.Components.WebView (10)
Microsoft.AspNetCore.Components.WebView.Maui (3)
Microsoft.AspNetCore.Components.WebView.Test (3)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.ConcurrencyLimiter (2)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
Microsoft.AspNetCore.Connections.Abstractions (3)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.DataProtection (13)
Microsoft.AspNetCore.DataProtection.Abstractions (1)
Microsoft.AspNetCore.DataProtection.Tests (6)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (10)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (13)
Logging\IncomingHttpRouteUtilityTests.cs (10)
45c => throw new InvalidOperationException("Test"),
83c => throw new InvalidOperationException("Test"),
123c => throw new InvalidOperationException("Test"),
165c => throw new InvalidOperationException("Test"),
207c => throw new InvalidOperationException("Test"),
254c => throw new InvalidOperationException("Test"),
295c => throw new InvalidOperationException("Test"),
343c => throw new InvalidOperationException("Test"),
388c => throw new InvalidOperationException("Test"),
426c => throw new InvalidOperationException("Test"),
Microsoft.AspNetCore.Diagnostics.Tests (21)
Microsoft.AspNetCore.Grpc.JsonTranscoding (68)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (7)
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.Swagger (38)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.HeaderPropagation (2)
Microsoft.AspNetCore.HostFiltering (1)
Microsoft.AspNetCore.Hosting (17)
Microsoft.AspNetCore.Hosting.Tests (12)
Microsoft.AspNetCore.Hosting.TestSites (1)
Microsoft.AspNetCore.Http (13)
Microsoft.AspNetCore.Http.Abstractions (16)
Extensions\UseMiddlewareExtensions.cs (10)
75throw new InvalidOperationException(Resources.FormatException_UseMiddleMutlipleInvokes(InvokeMethodName, InvokeAsyncMethodName));
84throw new InvalidOperationException(Resources.FormatException_UseMiddlewareNoInvokeMethod(InvokeMethodName, InvokeAsyncMethodName, middleware));
89throw new InvalidOperationException(Resources.FormatException_UseMiddlewareNonTaskReturnType(InvokeMethodName, InvokeAsyncMethodName, nameof(Task)));
95throw new InvalidOperationException(Resources.FormatException_UseMiddlewareNoParameters(InvokeMethodName, InvokeAsyncMethodName, nameof(HttpContext)));
148throw new InvalidOperationException(Resources.FormatException_UseMiddlewareIServiceProviderNotAvailable(nameof(IServiceProvider)));
176throw new InvalidOperationException(Resources.FormatException_UseMiddlewareNoMiddlewareFactory(typeof(IMiddlewareFactory)));
183throw new InvalidOperationException(Resources.FormatException_UseMiddlewareUnableToCreateMiddleware(middlewareFactory.GetType(), _middlewareType));
330var service = sp.GetService(type) ?? throw new InvalidOperationException(Resources.FormatException_InvokeMiddlewareNoService(type, middleware));
339var service = ksp.GetKeyedService(type, key) ?? throw new InvalidOperationException(Resources.FormatException_InvokeMiddlewareNoService(type, middleware));
344throw new InvalidOperationException(Resources.Exception_KeyedServicesNotSupported);
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Connections (4)
Microsoft.AspNetCore.Http.Connections.Client (12)
Microsoft.AspNetCore.Http.Connections.Common (3)
Microsoft.AspNetCore.Http.Connections.Tests (3)
Microsoft.AspNetCore.Http.Extensions (58)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Microbenchmarks (3)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.Results (13)
Microsoft.AspNetCore.HttpLogging (6)
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.AspNetCore.Identity (9)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (10)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
Microsoft.AspNetCore.Identity.InMemory.Test (2)
Microsoft.AspNetCore.Identity.Test (15)
Microsoft.AspNetCore.Identity.UI (28)
Microsoft.AspNetCore.InternalTesting (5)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (7)
Microsoft.AspNetCore.Mvc.Abstractions (11)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.Core (98)
Microsoft.AspNetCore.Mvc.Core.Test (7)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Cors (1)
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Microsoft.AspNetCore.Mvc.Localization (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (9)
Microsoft.AspNetCore.Mvc.Razor (20)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
Microsoft.AspNetCore.Mvc.RazorPages (16)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.Mvc.TagHelpers (15)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
Microsoft.AspNetCore.Mvc.Testing (9)
Microsoft.AspNetCore.Mvc.ViewFeatures (53)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.OpenApi (20)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (5)
Microsoft.AspNetCore.OutputCaching (6)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (7)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
Microsoft.AspNetCore.Owin (2)
Microsoft.AspNetCore.Owin.Microbenchmarks (1)
Microsoft.AspNetCore.RateLimiting (5)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.RequestDecompression (2)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching (3)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCompression.Tests (10)
Microsoft.AspNetCore.Rewrite (4)
Microsoft.AspNetCore.Routing (48)
Microsoft.AspNetCore.Routing.FunctionalTests (2)
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
Microsoft.AspNetCore.Routing.Tests (2)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (39)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (37)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.IntegrationTesting (8)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (17)
Microsoft.AspNetCore.Server.Kestrel.Core (106)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (20)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (9)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (17)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.Session (2)
Microsoft.AspNetCore.Session.Tests (1)
Microsoft.AspNetCore.Shared.Tests (17)
Microsoft.AspNetCore.SignalR (1)
Microsoft.AspNetCore.SignalR.Client.Core (19)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (9)
Microsoft.AspNetCore.SignalR.Client.Tests (6)
Microsoft.AspNetCore.SignalR.Common (4)
Microsoft.AspNetCore.SignalR.Common.Tests (3)
Microsoft.AspNetCore.SignalR.Core (22)
Microsoft.AspNetCore.SignalR.Microbenchmarks (10)
Microsoft.AspNetCore.SignalR.Protocols.Json (4)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
Microsoft.AspNetCore.SignalR.Specification.Tests (3)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Microsoft.AspNetCore.SignalR.Tests (9)
Microsoft.AspNetCore.SignalR.Tests.Utils (5)
Microsoft.AspNetCore.SpaServices.Extensions (6)
Microsoft.AspNetCore.StaticAssets (14)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.TestHost (16)
Microsoft.AspNetCore.TestHost.Tests (11)
Microsoft.AspNetCore.Testing (2)
Microsoft.AspNetCore.Tests (3)
Microsoft.AspNetCore.WebSockets (2)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
Microsoft.AspNetCore.WebSockets.Tests (1)
Microsoft.AspNetCore.WebUtilities (3)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (2)
Microsoft.AspNetCore.WebUtilities.Tests (1)
Microsoft.Build (24)
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Engine.UnitTests (5)
Microsoft.Build.Framework (14)
Microsoft.Build.Tasks.CodeAnalysis (11)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (11)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
Microsoft.Build.Tasks.Core (6)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.UnitTests.Shared (2)
Microsoft.Build.Utilities.Core (6)
Microsoft.Build.Utilities.UnitTests (3)
Microsoft.Cci.Extensions (6)
Microsoft.CodeAnalysis (41)
Microsoft.CodeAnalysis.Analyzers (27)
Microsoft.CodeAnalysis.AnalyzerUtilities (18)
Microsoft.CodeAnalysis.BannedApiAnalyzers (23)
Microsoft.CodeAnalysis.CodeStyle (17)
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.Collections.Package (9)
Microsoft.CodeAnalysis.Compiler.Test.Resources (1)
Microsoft.CodeAnalysis.Contracts.Package (3)
Microsoft.CodeAnalysis.CSharp (8)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Debugging.Package (16)
Microsoft.CodeAnalysis.EditorFeatures (32)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Microsoft.CodeAnalysis.EditorFeatures.Text (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
Microsoft.CodeAnalysis.Extensions.Package (9)
Microsoft.CodeAnalysis.ExternalAccess.Extensions (4)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (31)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (10)
Microsoft.CodeAnalysis.LanguageServer (7)
Microsoft.CodeAnalysis.LanguageServer.Protocol (48)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (23)
Microsoft.CodeAnalysis.PooledObjects.Package (3)
Microsoft.CodeAnalysis.PublicApiAnalyzers (17)
Microsoft.CodeAnalysis.Rebuild (3)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (17)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Test.Utilities (14)
Microsoft.CodeAnalysis.Threading.Package (9)
Microsoft.CodeAnalysis.UnitTests (8)
Microsoft.CodeAnalysis.Workspaces (86)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.CommonLanguageServerProtocol.Framework.Example (3)
Microsoft.CommonLanguageServerProtocol.Framework.Package (34)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Microsoft.Data.Analysis (2)
Microsoft.Data.Analysis.Tests (2)
Microsoft.DotNet.ArcadeAzureIntegration (3)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.Build.Tasks.Installers (9)
Microsoft.DotNet.Build.Tasks.Packaging (5)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.Internal.SymbolHelper (1)
Microsoft.DotNet.NuGetRepack.Tasks (2)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
Microsoft.DotNet.RemoteExecutor (2)
Microsoft.DotNet.SignTool (3)
Microsoft.DotNet.StrongName (6)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (5)
Microsoft.DotNet.XliffTasks (4)
Microsoft.DotNet.XUnitAssert.Tests (2)
Microsoft.DotNet.XUnitExtensions (4)
Microsoft.DotNet.XUnitV3Extensions (1)
Microsoft.Extensions.AI (6)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.AzureAIInference (3)
Microsoft.Extensions.AI.Evaluation (3)
Microsoft.Extensions.AI.Evaluation.Console (4)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
Microsoft.Extensions.AI.Evaluation.NLP (1)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Evaluation.Reporting (4)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Microsoft.Extensions.AI.Evaluation.Safety (10)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.Ollama (5)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Templates.Tests (6)
Microsoft.Extensions.AI.Tests (3)
Microsoft.Extensions.AmbientMetadata.Application (1)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Extensions.ApiDescription.Tool.Tests (2)
Microsoft.Extensions.AsyncState (2)
Microsoft.Extensions.Caching.Abstractions (1)
Microsoft.Extensions.Caching.Hybrid (9)
Microsoft.Extensions.Caching.Memory (1)
Microsoft.Extensions.Caching.SqlServer (2)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
Microsoft.Extensions.Compliance.Abstractions (1)
Microsoft.Extensions.Compliance.Redaction (7)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.Configuration (3)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Binder (11)
ConfigurationBinder.cs (11)
243throw new InvalidOperationException(SR.Format(SR.Error_MissingConfig,
506throw new InvalidOperationException(SR.Format(SR.Error_FailedBinding, configValue, section.Path, type));
562throw new InvalidOperationException(SR.Format(SR.Error_CannotActivateAbstractOrInterface, type));
572throw new InvalidOperationException(SR.Format(SR.Error_MissingPublicInstanceConstructor, type));
577throw new InvalidOperationException(SR.Format(SR.Error_MultipleParameterizedConstructors, type));
587throw new InvalidOperationException(SR.Format(SR.Error_CannotBindToConstructorParameter, type, nameOfInvalidParameter));
595throw new InvalidOperationException(SR.Format(SR.Error_ConstructorParametersDoNotMatchProperties, type, nameOfInvalidParameters));
620return instance ?? throw new InvalidOperationException(SR.Format(SR.Error_FailedToActivate, type));
853throw new InvalidOperationException(SR.Format(SR.Error_UnsupportedMultidimensionalArray, type));
1135throw new InvalidOperationException(SR.Format(SR.Error_ParameterBeingBoundToIsUnnamed, type));
1155throw new InvalidOperationException(SR.Format(SR.Error_ParameterHasNoMatchingConfig, type, parameterName));
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
Microsoft.Extensions.Configuration.UserSecrets (3)
Microsoft.Extensions.DependencyInjection (17)
Microsoft.Extensions.DependencyInjection.Abstractions (17)
ActivatorUtilities.cs (11)
56throw new InvalidOperationException(SR.CannotCreateAbstractClasses);
162throw new InvalidOperationException(SR.Format(SR.MultipleCtorsFoundWithBestLength, instanceType, bestLength));
389throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, type, requiredBy));
569throw new InvalidOperationException(SR.Format(SR.CtorNotLocated, instanceType));
607throw new InvalidOperationException(SR.Format(SR.MultipleCtorsFound, instanceType));
763throw new InvalidOperationException(SR.KeyedServicesNotSupported);
783throw new InvalidOperationException(SR.KeyedServicesNotSupported);
864throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, _constructor.Parameters[index].ParameterType, _constructor.Info.DeclaringType));
908throw new InvalidOperationException(SR.Format(SR.MultipleCtorsMarkedWithAttribute, nameof(ActivatorUtilitiesConstructorAttribute)));
913throw new InvalidOperationException(SR.Format(SR.MarkedCtorMissingArgumentTypes, nameof(ActivatorUtilitiesConstructorAttribute)));
1216throw new InvalidOperationException(SR.KeyedServicesNotSupported);
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
Microsoft.Extensions.DependencyModel (3)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (9)
Microsoft.Extensions.Diagnostics.Probes (6)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (10)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (7)
Microsoft.Extensions.Diagnostics.Testing (3)
Microsoft.Extensions.Features (3)
Microsoft.Extensions.FileProviders.Embedded (18)
Microsoft.Extensions.FileProviders.Physical (3)
Microsoft.Extensions.FileSystemGlobbing (11)
Microsoft.Extensions.Hosting (5)
Microsoft.Extensions.Hosting.Testing (1)
Microsoft.Extensions.Hosting.WindowsServices (1)
Microsoft.Extensions.Http (7)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Polly (2)
Microsoft.Extensions.Http.Resilience (8)
Microsoft.Extensions.Identity.Core (13)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Configuration (1)
Microsoft.Extensions.Logging.Console (2)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.ML (4)
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.Contextual (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (3)
Microsoft.Extensions.Resilience (1)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
Microsoft.Extensions.ServiceDiscovery (8)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (11)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (2)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.Telemetry (10)
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Extensions.Telemetry.Tests (8)
Microsoft.Extensions.TimeProvider.Testing (1)
Microsoft.Extensions.Validation (4)
Microsoft.Extensions.Validation.GeneratorTests (7)
Microsoft.Extensions.Validation.Tests (1)
Microsoft.Extensions.Validation.ValidationsGenerator (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Generated.Tests (5)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (3)
Microsoft.JSInterop (4)
Microsoft.JSInterop.Tests (1)
Microsoft.Maui (44)
Converters\FlexEnumsConverters.cs (7)
36 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexJustify)));
71 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexDirection)));
110 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexAlignContent)));
145 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexAlignItems)));
180 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexAlignSelf)));
213 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexWrap)));
255 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexBasis)));
Microsoft.Maui.Controls (141)
Microsoft.Maui.Controls.BindingSourceGen (1)
Microsoft.Maui.Controls.Xaml (4)
Microsoft.Maui.Essentials (8)
Microsoft.Maui.Graphics (7)
Microsoft.Maui.Graphics.Skia (1)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.AutoML (4)
Microsoft.ML.Core (6)
Microsoft.ML.CpuMath (4)
Microsoft.ML.Data (2)
Microsoft.ML.DataView (3)
Microsoft.ML.GenAI.Core (8)
Microsoft.ML.GenAI.LLaMA (7)
Microsoft.ML.GenAI.Mistral (6)
Microsoft.ML.GenAI.Phi (7)
Microsoft.ML.GenAI.Samples (1)
Microsoft.ML.ImageAnalytics (5)
Microsoft.ML.PerformanceTests (1)
Microsoft.ML.Samples (2)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.Tests (26)
Microsoft.ML.TimeSeries (1)
Microsoft.ML.Tokenizers (18)
Microsoft.ML.Tokenizers.Tests (6)
Microsoft.ML.TorchSharp (1)
Microsoft.Net.Http.Headers (1)
Microsoft.NET.StringTools (2)
Microsoft.NET.StringTools.net35 (1)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualStudio.LanguageServices (25)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Microsoft.Web.Xdt.Extensions (1)
MSBuild (2)
MSBuildTaskHost (6)
Mvc.RoutingWebSite (2)
ParameterEndToEnd.AppHost (1)
PresentationBuildTasks (23)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\TokenizerHelper.cs (8)
102throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperExtraDataEncountered, _charIndex, _str));
123throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperPrematureStringTermination, _str));
137throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperPrematureStringTermination, _str));
229throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperMissingEndQuote, _str));
240throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
260throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperExtraDataEncountered, _charIndex, _str));
278throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
297throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
PresentationCore (483)
PresentationFramework (860)
MS\Internal\Data\CollectionViewProxy.cs (13)
409throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "NewItemPlaceholderPosition"));
448throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
467throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitNew"));
484throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelNew"));
565throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "RemoveAt"));
581throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "Remove"));
605throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "EditItem"));
622throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitEdit"));
639throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelEdit"));
746throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
810throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveSorting", "CanChangeLiveSorting"));
833throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveFiltering", "CanChangeLiveFiltering"));
856throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveGrouping", "CanChangeLiveGrouping"));
MS\Internal\Data\PropertyPathWorker.cs (5)
1532_host?.ReportGetValueError(k, item, new InvalidOperationException(SR.Format(SR.NonCLSException, "GetValue")));
1581throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pi.Name));
1586throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pd.Name));
1591throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), dp.Name));
1596throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), dpa.PropertyName));
System\Windows\Controls\ItemCollection.cs (15)
246throw new InvalidOperationException(SR.ItemsSourceInUse);
335throw new InvalidOperationException(SR.ItemCollectionHasNoCollection);
887throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "NewItemPlaceholderPosition"));
926throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
945throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitNew"));
962throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelNew"));
1043throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "RemoveAt"));
1059throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "Remove"));
1083throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "EditItem"));
1100throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitEdit"));
1117throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelEdit"));
1224throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
1497throw new InvalidOperationException(SR.CannotUseItemsSource);
1932throw new InvalidOperationException(SR.ItemsSourceInUse);
1975throw new InvalidOperationException(SR.NoCheckOrChangeWhenDeferred);
System\Windows\Data\BindingListCollectionView.cs (22)
306throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "CustomFilter"));
369throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "GroupBySelector"));
429throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "NewItemPlaceholderPosition", "AddNew"));
569throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
649throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitNew", "EditItem"));
696throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelNew", "EditItem"));
872throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "RemoveAt"));
884throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Remove"));
897throw new InvalidOperationException(SR.RemovingPlaceholder);
980throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitEdit", "AddNew"));
1019throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelEdit", "AddNew"));
1033throw new InvalidOperationException(SR.CancelEditNotSupported);
1122set { throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveSorting", "CanChangeLiveSorting")); }
1134set { throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveFiltering", "CanChangeLiveFiltering")); }
1918throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
1930throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
1987throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
2170throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Sorting"));
2309throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
2319throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
2451throw new InvalidOperationException(SR.CannotMoveToUnknownPosition);
2516throw new InvalidOperationException(SR.BindingListCanOnlySortByOneProperty);
System\Windows\Data\ListCollectionView.cs (21)
437throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Filter"));
461throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "CustomSort"));
483throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
542throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "NewItemPlaceholderPosition", "AddNew"));
716throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
739throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
825throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitNew", "EditItem"));
941throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelNew", "EditItem"));
1050throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "RemoveAt"));
1062throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Remove"));
1075throw new InvalidOperationException(SR.RemovingPlaceholder);
1177throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitEdit", "AddNew"));
1285throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelEdit", "AddNew"));
1299throw new InvalidOperationException(SR.CancelEditNotSupported);
2518throw new InvalidOperationException(SR.CannotMoveToUnknownPosition);
2669throw new InvalidOperationException(SR.Format(SR.CollectionChangeIndexOutOfRange, index, ilFull.Count));
2676throw new InvalidOperationException(SR.Format(SR.AddedItemNotAtIndex, index));
2683throw new InvalidOperationException(SR.AddedItemNotInCollection);
2909throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Sorting"));
3002throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
3012throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
System\Windows\Data\XmlNamespaceMapping.cs (6)
46throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Prefix", this.GetType().Name));
48throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Prefix", this.GetType().Name));
65throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Uri", this.GetType().Name));
67throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Uri", this.GetType().Name));
137throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Prefix", this.GetType().Name));
141throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Uri", this.GetType().Name));
System\Windows\FrameworkElementFactory.cs (21)
72throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
77throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
116throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
121throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
140throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
160throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
172throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
199throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
277throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
302throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
338throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
544throw new InvalidOperationException(SR.NullTypeIllegal);
553throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild, _type.Name));
564throw new InvalidOperationException(SR.Format(SR.ChildNameNamePatternReserved, _childName));
650throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
905throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
923throw new InvalidOperationException(SR.FrameworkElementFactoryMustBeSealed);
951throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
1111throw new InvalidOperationException(SR.Format(SR.AlreadyHasLogicalChildren,
1119throw new InvalidOperationException(SR.Format(SR.CannotHookupFCERoot,
1183throw new InvalidOperationException(SR.Format(SR.MissingContentSource, prefix, targetType));
System\Windows\Markup\BamlReader.cs (14)
316throw new InvalidOperationException(SR.BamlReaderClosed);
657throw new InvalidOperationException(SR.Format(SR.ParserUnknownBaml,
990throw new InvalidOperationException(SR.Format(SR.BamlReaderNoOwnerType, attrInfo.Name, AssemblyName));
1026throw new InvalidOperationException(SR.Format(SR.ParserCantGetDPOrPi, info.Name));
1678throw new InvalidOperationException(SR.Format(SR.ParserUnknownBaml,
1793throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty));
1807throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty));
1851throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
1889throw new InvalidOperationException(SR.ParserMapPIMissingAssembly);
2036throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2143throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2250throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2391throw new InvalidOperationException(SR.BamlBadExtensionValue);
2471throw new InvalidOperationException(SR.BamlBadExtensionValue);
System\Windows\Media\Animation\Storyboard.cs (28)
270throw new InvalidOperationException(
276throw new InvalidOperationException(
283throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetNameNotDependencyObject, targetName ));
318throw new InvalidOperationException(
327throw new InvalidOperationException(
336throw new InvalidOperationException(
342throw new InvalidOperationException(
350throw new InvalidOperationException(SR.Format(SR.Storyboard_BeginStoryboardNameNotFound, targetName));
397throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetNameNotAllowedInStyle, nameString));
445throw new InvalidOperationException(SR.Format(SR.Storyboard_NoTarget, currentTimeline.GetType().ToString() ));
453throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetPropertyRequired, currentTimeline.GetType().ToString() ));
463throw new InvalidOperationException(SR.Storyboard_PropertyPathEmpty);
476throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyProperty, currentPropertyPath.Path ));
542throw new InvalidOperationException(SR.Format(SR.Storyboard_MediaElementNotFound, currentObjectName ));
556throw new InvalidOperationException(SR.Storyboard_MediaElementRequired);
690throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathObjectNotFound, AccessorName(path, i-1), path.Path ));
697throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathPropertyNotFound, path.Path ));
724throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathFrozenCheckFailed, AccessorName(path, i-1), path.Path, intermediateFreezable.GetType().ToString() ));
730throw new InvalidOperationException(SR.Format(SR.Storyboard_ImmutableTargetNotSupported, path.Path));
745throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyObject, AccessorName(path, i-1), path.Path));
750throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyProperty, path.Path ));
755throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathSealedCheckFailed, intermediateDP.Name, path.Path, intermediateDO));
760throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathIncludesNonAnimatableProperty, path.Path, intermediateDP.Name));
796throw new InvalidOperationException(SR.Format(SR.Storyboard_AnimationMismatch, animationClock.Timeline.GetType(), targetProperty.Name, targetProperty.PropertyType));
843throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathUnresolved, path.Path));
874throw new InvalidOperationException(SR.Format(SR.Storyboard_ImmutableTargetNotSupported, path.Path));
945throw new InvalidOperationException(SR.Format(SR.Storyboard_ComplexPathNotSupported, targetObject.GetType().ToString()));
1947throw new InvalidOperationException(SR.Storyboard_NeverApplied);
System\Windows\PropertyPath.cs (8)
375throw new InvalidOperationException(SR.Format(SR.PropertyPathSyntaxError, detail));
560throw new InvalidOperationException(SR.Format(SR.PropertyPathInvalidAccessor,
566throw new InvalidOperationException(SR.Format(SR.PathParametersIndexOutOfRange, index, PathParameters.Count));
583throw new InvalidOperationException(SR.Format(SR.PropertyPathNoOwnerType, ownerName));
643throw new InvalidOperationException(SR.Format(SR.PropertyPathNoProperty, ownerType.Name, propertyName));
732throw new InvalidOperationException(SR.Format(SR.PathParameterIsNull, index));
736throw new InvalidOperationException(SR.Format(SR.PathParametersIndexOutOfRange, index, PathParameters.Count));
760throw new InvalidOperationException(SR.Format(SR.PropertyPathIndexWrongType, paramList[i].parenString, paramList[i].valueString));
System\Windows\Style.cs (12)
158throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
197throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
304throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
469throw new InvalidOperationException(SR.Format(SR.StyleTargetTypeMismatchWithElement,
493throw new InvalidOperationException(SR.Format(SR.NullPropertyIllegal, "TargetType"));
501throw new InvalidOperationException(SR.Format(SR.MustBaseOnStyleOfABaseType, _targetType.Name));
577throw new InvalidOperationException(SR.Format(
630throw new InvalidOperationException(SR.Format(SR.SetterOnStyleNotAllowedToHaveTarget, setter.TargetName));
734throw new InvalidOperationException(SR.StyleTriggersCannotTargetTheTemplate);
742throw new InvalidOperationException(SR.Format(SR.TriggerOnStyleNotAllowedToHaveSource, conditions[k].SourceName));
786throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInStyle, trigger.GetType().Name));
796throw new InvalidOperationException(SR.Format(SR.EventTriggerOnStyleNotAllowedToHaveTarget, eventTrigger.SourceName));
System\Windows\StyleHelper.cs (18)
109throw new InvalidOperationException(SR.CannotHaveOverridesDefaultStyleInThemeStyle);
115throw new InvalidOperationException(SR.CannotHaveEventHandlersInThemeStyle);
228throw new InvalidOperationException(SR.Format(
431throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name));
438throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name));
445throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name));
452throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name));
459throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name));
496throw new InvalidOperationException(SR.Format(SR.NameNotFound, propertyValue.ChildName));
551throw new InvalidOperationException(SR.MissingTriggerProperty);
982throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInTemplate, triggerBase.GetType().Name));
999throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInTemplate, triggerBase.GetType().Name));
1087throw new InvalidOperationException(SR.Format(SR.EventTriggerTargetNameUnresolvable, eventTrigger.SourceName));
1596throw new InvalidOperationException(SR.Format(SR.CrossThreadAccessOfUnshareableFreezable, freezable.GetType().FullName));
2079throw new InvalidOperationException(
2334throw new InvalidOperationException(SR.Format(SR.MustBeFrameworkDerived, d.GetType()));
4086throw new InvalidOperationException(SR.ChildTemplateInstanceDoesNotExist);
5323throw new InvalidOperationException(SR.StyleHasTooManyElements);
PresentationUI (22)
ReachFramework (13)
Replay (7)
Roslyn.Diagnostics.Analyzers (30)
Roslyn.Diagnostics.CSharp.Analyzers (1)
Roslyn.Test.PdbUtilities (1)
Roslyn.Test.Performance.Utilities (1)
Roslyn.VisualStudio.Next.UnitTests (1)
RunTests (4)
SemanticSearch.BuildTask (3)
ServerComparison.TestSites (1)
Shared (8)
SignalR.Client.FunctionalTestApp (2)
SimpleWebSiteWithWebApplicationBuilderException (1)
SocialSample (1)
Sockets.BindTests (3)
Sockets.FunctionalTests (3)
StaticFilesAuth (2)
Swaggatherer (1)
System.CodeDom (13)
System.Collections (39)
System.Collections.Concurrent (15)
System.Collections.Immutable (15)
System.Collections.NonGeneric (21)
System.Collections.Specialized (13)
System.ComponentModel.Annotations (30)
System.ComponentModel.Composition (18)
System.ComponentModel.EventBasedAsync (5)
System.ComponentModel.TypeConverter (61)
System\ComponentModel\TypeDescriptor.cs (49)
3460if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3462if (attrs == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes"));
3483if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3505if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3526if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3528if (converter == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3548if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3550if (converter == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3571if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3591if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3613if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3633if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3635if (events == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
3654if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptorFromRegisteredType"));
3656if (events == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEventsFromRegisteredType"));
3681if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3683if (evts == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
3703if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3705if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3724if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3726if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3751if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3753if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3775if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3823throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3826throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes"));
3850throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3875throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3901throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3904throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3928throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3931throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverterFromRegisteredType"));
3956throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3982throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4010throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4035throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4038throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
4062throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptorFromRegisteredType"));
4065throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEventsFromRegisteredType"));
4090throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4093throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
4118throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4122throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
4146throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4151throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetPropertiesFromRegisteredType"));
4176throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4179throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
4203throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4227throw new InvalidOperationException(SR.Format(SR.TypeIsNotRegistered, type.FullName));
System.Composition.Hosting (1)
System.Composition.TypedParts (1)
System.Configuration.ConfigurationManager (29)
System.Console (13)
System.Data.Common (23)
System.Data.Odbc (1)
System.Diagnostics.DiagnosticSource (16)
System.Diagnostics.Process (33)
System.Drawing.Common.Tests (3)
System.Formats.Asn1 (9)
System.Formats.Cbor (38)
System.Formats.Nrbf (3)
System.Formats.Tar (9)
System.IO.Compression (10)
System.IO.Compression.Brotli (10)
System.IO.IsolatedStorage (9)
System.IO.Packaging (10)
System.IO.Pipelines (11)
System.IO.Pipes (22)
System.IO.Ports (27)
System.Linq (4)
System.Linq.AsyncEnumerable (4)
System.Linq.Expressions (45)
System\Linq\Expressions\Error.cs (43)
33return new InvalidOperationException(Strings.InvalidMetaObjectCreated(p0));
61return new InvalidOperationException(Strings.CollectionModifiedWhileEnumerating);
82return new InvalidOperationException(Strings.BinderNotCompatibleWithCallSite(p0, p1, p2));
89return new InvalidOperationException(Strings.DynamicBindingNeedsRestrictions(p0, p1));
110return new InvalidOperationException(Strings.BindingCannotBeNull);
145return new InvalidOperationException(Strings.TypeParameterIsNotDelegate(p0));
187return new InvalidOperationException(Strings.NoOrInvalidRuleProduced);
401return new InvalidOperationException(Strings.ExtensionNodeMustOverrideProperty(p0));
422return new InvalidOperationException(Strings.CoercionOperatorNotDefined(p0, p1));
429return new InvalidOperationException(Strings.UnaryOperatorNotDefined(p0, p1));
436return new InvalidOperationException(Strings.BinaryOperatorNotDefined(p0, p1, p2));
443return new InvalidOperationException(Strings.ReferenceEqualityNotDefined(p0, p1));
450return new InvalidOperationException(Strings.OperandTypesDoNotMatchParameters(p0, p1));
457return new InvalidOperationException(Strings.OverloadOperatorTypeDoesNotMatchConversionType(p0, p1));
464return new InvalidOperationException(Strings.ConversionIsNotSupportedForArithmeticTypes);
584return new InvalidOperationException(Strings.CannotAutoInitializeValueTypeElementThroughProperty(p0));
591return new InvalidOperationException(Strings.CannotAutoInitializeValueTypeMemberThroughProperty(p0));
605return new InvalidOperationException(Strings.CoalesceUsedOnNonNullType);
612return new InvalidOperationException(Strings.ExpressionTypeCannotInitializeArrayType(p0, p1));
964return new InvalidOperationException(Strings.MethodWithArgsDoesNotExistOnType(p0, p1));
971return new InvalidOperationException(Strings.GenericMethodWithArgsDoesNotExistOnType(p0, p1));
978return new InvalidOperationException(Strings.MethodWithMoreThanOneMatch(p0, p1));
985return new InvalidOperationException(Strings.PropertyWithMoreThanOneMatch(p0, p1));
1013return new InvalidOperationException(Strings.LabelTargetAlreadyDefined(p0));
1020return new InvalidOperationException(Strings.LabelTargetUndefined(p0));
1027return new InvalidOperationException(Strings.ControlCannotLeaveFinally);
1034return new InvalidOperationException(Strings.ControlCannotLeaveFilterTest);
1041return new InvalidOperationException(Strings.AmbiguousJump(p0));
1048return new InvalidOperationException(Strings.ControlCannotEnterTry);
1055return new InvalidOperationException(Strings.ControlCannotEnterExpression);
1062return new InvalidOperationException(Strings.NonLocalJumpWithValue(p0));
1093return new InvalidOperationException(Strings.InvalidLvalue(p0));
1101return new InvalidOperationException(Strings.UndefinedVariable(p0, p1, p2));
1108return new InvalidOperationException(Strings.CannotCloseOverByRef(p0, p1));
1115return new InvalidOperationException(Strings.UnexpectedVarArgsCall(p0));
1122return new InvalidOperationException(Strings.RethrowRequiresCatch);
1129return new InvalidOperationException(Strings.TryNotAllowedInFilter);
1136return new InvalidOperationException(Strings.MustRewriteToSameNode(p0, p1, p2));
1143return new InvalidOperationException(Strings.MustRewriteChildToSameType(p0, p1, p2));
1150return new InvalidOperationException(Strings.MustRewriteWithoutMethod(p0, p1));
1221return new InvalidOperationException(Strings.NonAbstractConstructorRequired);
1237return new InvalidOperationException(Strings.EnumerationIsDone);
1317return new InvalidOperationException(Strings.IncorrectNumberOfLambdaArguments);
System.Linq.Parallel (36)
System.Linq.Queryable (3)
System.Memory (2)
System.Net.Http (21)
System.Net.HttpListener (21)
System.Net.Mail (26)
System.Net.NameResolution (1)
System.Net.NetworkInformation (5)
System.Net.Ping (2)
System.Net.Primitives (5)
System.Net.Quic (6)
System.Net.Requests (48)
System.Net.Security (31)
System.Net.ServerSentEvents (1)
System.Net.Sockets (42)
System.Net.WebHeaderCollection (10)
System.Net.WebSockets (2)
System.Net.WebSockets.Client (3)
System.ObjectModel (1)
System.Private.CoreLib (269)
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (66)
System\Xml\XmlBaseWriter.cs (32)
120throw new InvalidOperationException(SR.XmlWriterClosed);
155throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString()));
179throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString()));
207throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartAttribute", WriteState.ToString()));
311throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteEndAttribute", WriteState.ToString()));
370throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteEndAttribute", WriteState.ToString()));
434throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteComment", WriteState.ToString()));
460throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteFullEndElement", WriteState.ToString()));
472throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteCData", WriteState.ToString()));
496throw new InvalidOperationException(SR.XmlOnlyOneRoot);
501throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()));
539throw new InvalidOperationException(SR.XmlOnlyOneRoot);
542throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()));
609throw new InvalidOperationException(SR.Format(SR.XmlInvalidDepth, "WriteEndElement", _depth.ToString(CultureInfo.InvariantCulture)));
636throw new InvalidOperationException(SR.Format(SR.XmlInvalidDepth, "WriteEndElement", _depth.ToString(CultureInfo.InvariantCulture)));
720throw new InvalidOperationException(SR.XmlIllegalOutsideRoot);
727throw new InvalidOperationException(SR.XmlIllegalOutsideRoot);
754throw new InvalidOperationException(SR.XmlIllegalOutsideRoot);
760throw new InvalidOperationException(SR.XmlIllegalOutsideRoot);
766throw new InvalidOperationException(SR.XmlIllegalOutsideRoot);
869throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartDocument", WriteState.ToString()));
894throw new InvalidOperationException(SR.XmlInvalidDeclaration);
921throw new InvalidOperationException(SR.XmlNoRootElement);
1591throw new InvalidOperationException(SR.XmlCanonicalizationStarted);
1604throw new InvalidOperationException(SR.XmlCanonicalizationNotStarted);
1632throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "StartFragment", WriteState.ToString()));
1684throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "EndFragment", WriteState.ToString()));
1719throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteFragment", WriteState.ToString()));
1817throw new InvalidOperationException(SR.XmlOnlyOneRoot);
1819throw new InvalidOperationException(SR.XmlOnlyOneRoot);
1821throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()));
1828throw new InvalidOperationException(SR.Format(SR.XmlInvalidPrefixState, WriteState.ToString()));
System.Private.Uri (38)
System.Private.Windows.Core (6)
System.Private.Windows.Core.TestUtilities (13)
System.Private.Windows.GdiPlus (2)
System.Private.Xml (537)
System\Xml\Schema\XmlSchemaValidator.cs (9)
367throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], s_methodNames[(int)ValidatorState.Start] }));
377throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], s_methodNames[(int)ValidatorState.Start] }));
879throw new InvalidOperationException(SR.Sch_InvalidEndElementCall);
889throw new InvalidOperationException(SR.Format(SR.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.SkipToEndElement]));
922throw new InvalidOperationException(SR.Sch_InvalidEndValidation);
1171throw new InvalidOperationException(SR.Format(SR.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.EndElement]));
1222throw new InvalidOperationException(SR.Sch_InvalidEndElementCallTyped);
2078throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStartTransition, new string[] { methodName, s_methodNames[(int)ValidatorState.Start] }));
2080throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], methodName }));
System\Xml\Serialization\Compilation.cs (9)
89throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Failed to generate XmlSerializer assembly, but did not throw"));
191throw new InvalidOperationException(SR.Format(SR.XmlPregenInvalidXmlSerializerAssemblyAttribute, "AssemblyName", "CodeBase"));
351throw new InvalidOperationException(SR.Format(SR.XmlPregenTypeDynamic, types[i]!.FullName));
545throw new InvalidOperationException(SR.Format(SR.XmlMissingType, typeName, assembly.FullName));
571throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncoding3, encodingStyle, Soap.Encoding, Soap12.Encoding));
576throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncodingNotEncoded1, encodingStyle));
603throw new InvalidOperationException(SR.Format(SR.XmlTypeInBadLoadContext, t.FullName));
621throw new InvalidOperationException(SR.Format(SR.XmlNotSerializable, mapping.Accessor.Name));
648throw new InvalidOperationException(SR.Format(SR.XmlNotSerializable, mapping.Accessor.Name));
System\Xml\Serialization\Mappings.cs (15)
242throw new InvalidOperationException(SR.Format(SR.Xml_InvalidNameChars, Name));
599throw new InvalidOperationException(SR.Format(SR.XmlHiddenMember, parent, member.Name, member.TypeDesc!.FullName, this.TypeName, _members[i].Name, _members[i].TypeDesc!.FullName));
602throw new InvalidOperationException(SR.Format(SR.XmlInvalidXmlOverride, parent, member.Name, this.TypeName, _members[i].Name));
626throw new InvalidOperationException(SR.Format(SR.XmlIllegalSimpleContentExtension, TypeDesc!.FullName, BaseMapping.TypeDesc.FullName));
639throw new InvalidOperationException(SR.Format(SR.XmlIllegalTypedTextAttribute, TypeDesc!.FullName, text.Name, text.Mapping.TypeDesc.FullName));
1108throw new InvalidOperationException(SR.Format(SR.XmlCircularDerivation, TypeDesc!.FullName));
1233throw new InvalidOperationException(SR.Format(SR.XmlSerializableSchemaError, nameof(IXmlSerializable), args.Message));
1266throw new InvalidOperationException(SR.Format(SR.XmlSerializableRootDupName, _getSchemaMethod!.DeclaringType!.FullName, e.Name, elementNs));
1319throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaEmptyTypeName, _type!.FullName, _getSchemaMethod.Name));
1324throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, _type!.Name, _getSchemaMethod.Name, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName));
1348throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, _xsiType.Namespace));
1352throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaInclude, _xsiType.Namespace, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name));
1357throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, _xsiType.Namespace));
1362throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaTypeMissing, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name, _xsiType.Name, _xsiType.Namespace));
1375if (string.IsNullOrEmpty(_schema.Id)) throw new InvalidOperationException(SR.Format(SR.XmlSerializableNameMissing1, _type!.FullName));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (17)
585throw new InvalidOperationException(SR.XmlInternalError);
627throw new InvalidOperationException(SR.XmlInternalError);
643throw new InvalidOperationException(SR.XmlInternalError);
671throw new InvalidOperationException(SR.XmlInternalError);
692throw new InvalidOperationException(SR.XmlInternalError);
926throw new InvalidOperationException(SR.XmlInternalError);
998throw new InvalidOperationException(SR.XmlInternalError);
1003throw new InvalidOperationException(SR.XmlInternalError);
1064throw new InvalidOperationException(SR.XmlInternalError);
1109throw new InvalidOperationException(SR.XmlInternalError);
1210_ => throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}")),
1220throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}"));
1495throw new InvalidOperationException(SR.XmlInternalError);
1629throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order"));
1665member.Source = (value) => throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, pi.Name, pi.DeclaringType!.FullName));
1684throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, pi.Name, pi.DeclaringType!.FullName));
1980throw new InvalidOperationException(SR.XmlInternalError);
System\Xml\Serialization\SoapReflectionImporter.cs (20)
169throw new InvalidOperationException(SR.Format(SR.XmlInvalidDataTypeUsage, dataType, "SoapElementAttribute.DataType"));
174throw new InvalidOperationException(SR.Format(SR.XmlInvalidXsdDataType, dataType, "SoapElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString()));
178throw new InvalidOperationException(SR.Format(SR.XmlDataTypeMismatch, dataType, "SoapElementAttribute.DataType", model.TypeDesc.FullName));
185throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.Type.FullName));
253throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, mapping.TypeDesc!.FullName, typeName, ns));
276throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace));
281throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace));
340throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed"));
342throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed"));
502throw new InvalidOperationException(SR.Format(SR.XmlInvalidSoapArray, mapping.TypeDesc!.FullName));
541throw new InvalidOperationException(SR.Format(SR.XmlUdeclaredXsdType, dataType));
583throw new InvalidOperationException(SR.Format(SR.XmlNoSerializableMembers, model.TypeDesc.FullName));
595throw new InvalidOperationException(SR.XmlInvalidEnumAttribute);
619if (i > 0) throw new InvalidOperationException(SR.XmlInvalidReturnPosition);
690throw new InvalidOperationException(SR.XmlInvalidVoid);
697throw new InvalidOperationException(SR.Format(SR.XmlIllegalSoapAttribute, accessorName, accessor.TypeDesc.FullName));
700throw new InvalidOperationException(SR.XmlInvalidElementAttribute);
714throw new InvalidOperationException(SR.XmlInvalidElementAttribute);
751throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultEnumValue, a.SoapDefaultValue.GetType().FullName, fieldTypeDesc.FullName));
755throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, strValue, a.SoapDefaultValue.GetType().FullName));
System\Xml\Serialization\Types.cs (9)
392_exception = new InvalidOperationException(SR.Format(SR.XmlConstructorInaccessible, FullName));
702throw new InvalidOperationException(SR.Format(SR.XmlUnsupportedOpenGenericType, type));
766exception = new InvalidOperationException(SR.Format(SR.XmlTypeInaccessible, type.FullName));
771exception = new InvalidOperationException(SR.Format(SR.XmlTypeStatic, type.FullName));
1082throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, propertyInfo.DeclaringType, propertyInfo.Name));
1320throw new InvalidOperationException(SR.Format(SR.XmlNoAddMethod, type.FullName, currentType, "IEnumerable"));
1371throw new InvalidOperationException(SR.Format(SR.XmlNoDefaultAccessors, type.FullName));
1376throw new InvalidOperationException(SR.Format(SR.XmlNoAddMethod, type.FullName, indexer.PropertyType, "ICollection"));
1406throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeSyntax, type));
System\Xml\Serialization\XmlReflectionImporter.cs (95)
130throw new InvalidOperationException(SR.Format(SR.XmlAnonymousInclude, type.FullName));
286throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, model.TypeDesc.BaseTypeDesc!.FullName, "XmlRoot"));
341throw new InvalidOperationException(SR.Format(SR.XmlCannotReconcileAccessorDefault, accessor.Name, accessor.Namespace, value1, value2));
346throw new InvalidOperationException(SR.Format(SR.XmlMethodTypeNameConflict, accessor.Name, accessor.Namespace));
352throw new InvalidOperationException(SR.Format(SR.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping!), GetMappingName(accessor.Mapping)));
369throw new InvalidOperationException(SR.Format(SR.XmlCannotReconcileAttributeAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping!), GetMappingName(accessor.Mapping!)));
371throw new InvalidOperationException(SR.Format(SR.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping!), GetMappingName(accessor.Mapping!)));
407throw new InvalidOperationException(SR.Format(SR.XmlInvalidDataTypeUsage, dataType, "XmlElementAttribute.DataType"));
412throw new InvalidOperationException(SR.Format(SR.XmlInvalidXsdDataType, dataType, "XmlElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString()));
416throw new InvalidOperationException(SR.Format(SR.XmlDataTypeMismatch, dataType, "XmlElementAttribute.DataType", modelTypeDesc.FullName));
423throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.Type.FullName));
464throw new InvalidOperationException(SR.Format(SR.XmlSerializableAttributes, model.TypeDesc.FullName, nameof(XmlSchemaProviderAttribute)));
500throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodMissing, provider.MethodName, nameof(XmlSchemaSet), type.FullName));
503throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, type.Name, provider.MethodName, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName, typeof(XmlSchemaType).FullName));
594throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, baseQname.Namespace));
598throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaInclude, baseQname.Namespace, nameof(IXmlSerializable), "GetSchema"));
625return new InvalidOperationException(SR.Format(SR.XmlInvalidAttributeUse, type.FullName));
630return new InvalidOperationException(SR.Format(SR.XmlIllegalTypeContext, typeDesc.FullName, GetContextName(context)));
674throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace));
679throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace));
722throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, mapping.TypeDesc!.FullName, typeName, ns));
779throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed"));
781throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed"));
878throw new InvalidOperationException(SR.Format(SR.XmlIllegalTypedTextAttribute, typeName, member.Text.Name, member.Text.Mapping.TypeDesc.FullName));
881throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, model.Type.FullName));
888throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName));
919throw new InvalidOperationException(SR.Format(SR.XmlSequenceUnique, member.SequenceId.ToString(CultureInfo.InvariantCulture), "Order", member.Name));
925throw new InvalidOperationException(SR.Format(SR.XmlSequenceInconsistent, "Order", member.Name));
935throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName));
1176throw new InvalidOperationException(SR.Format(SR.XmlUdeclaredXsdType, dataType));
1211throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttributeFlagsArray, model.TypeDesc.FullName));
1226throw new InvalidOperationException(SR.Format(SR.XmlNoSerializableMembers, model.TypeDesc.FullName));
1239throw new InvalidOperationException(SR.XmlInvalidConstantAttribute);
1272throw new InvalidOperationException(SR.XmlRpcLitAttributeAttributes);
1276throw new InvalidOperationException(SR.Format(SR.XmlInvalidAttributeType, "XmlAttribute"));
1282if (i > 0) throw new InvalidOperationException(SR.XmlInvalidReturnPosition);
1298throw new InvalidOperationException(SR.XmlIllegalMultipleTextMembers);
1306throw new InvalidOperationException(SR.XmlMultipleXmlnsMembers);
1321throw new InvalidOperationException(SR.Format(SR.XmlSequenceMembers, "Order"));
1438throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierType, identifierName, memberName, type.GetElementType()!.FullName));
1445throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierArrayType, identifierName, memberName, type.FullName));
1451throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierTypeEnum, identifierName));
1466throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1483throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1490throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierAmbiguous, choice.MemberName));
1497throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1580throw new InvalidOperationException(SR.XmlIllegalAttributesArrayAttribute);
1586throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName, nameof(IXmlSerializable)));
1590throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName));
1627throw new InvalidOperationException(SR.XmlIllegalElementsArrayAttribute);
1637throw new InvalidOperationException(SR.Format(SR.XmlIllegalArrayTextAttribute, accessorName));
1665throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1678throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1690throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, arrayElementType.FullName));
1701throw new InvalidOperationException(SR.Format(SR.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace ?? "null"));
1728throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1738throw new InvalidOperationException(SR.XmlIllegalArrayArrayAttribute);
1772throw new InvalidOperationException(SR.XmlIllegalAttribute);
1776if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, accessor.TypeDesc.FullName));
1780if (a.XmlElements.Count > 0) throw new InvalidOperationException(SR.XmlIllegalAttribute);
1781if (a.XmlAttribute.Type != null) throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlAttribute"));
1807throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlText"));
1824throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlElement"));
1838throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1851throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1862throw new InvalidOperationException(SR.XmlSoleXmlnsAttribute);
1866throw new InvalidOperationException(SR.Format(SR.XmlXmlnsInvalidType, accessorName, accessorType.FullName, typeof(System.Xml.Serialization.XmlSerializerNamespaces).FullName));
1877throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.FullName, nameof(IXmlSerializable)));
1881throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc));
1906throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1919throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1931throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, accessorType.FullName));
1943throw new InvalidOperationException(SR.Format(SR.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace ?? "null"));
1968throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1982throw new InvalidOperationException(SR.Format(SR.XmlRpcLitArrayElement, accessor.Elements[0].Name));
1985throw new InvalidOperationException(SR.Format(SR.XmlRpcLitXmlns, accessor.Name));
2031throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, accessor.ChoiceIdentifier.Mapping!.TypeDesc!.FullName));
2037throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping!.TypeDesc!.FullName, id, element.Name, element.Namespace));
2053throw new InvalidOperationException(SR.XmlRpcLitAttributeAttributes);
2056throw new InvalidOperationException(SR.XmlRpcLitAttributes);
2062throw new InvalidOperationException(SR.XmlRpcLitElements);
2067throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", xmlElement.Namespace));
2071throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNullable, "IsNullable", "true"));
2076throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", a.XmlArray.Namespace));
2093throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2104throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2119throw new InvalidOperationException(SR.Format(SR.XmlArrayItemAmbiguousTypes, accessorName, item.ElementName, items[i]!.ElementName, nameof(XmlElementAttribute), nameof(XmlChoiceIdentifierAttribute), accessorName));
2142throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdDuplicate, choiceMapping.TypeName, choiceId));
2163throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, strValue, a.XmlDefaultValue.GetType().FullName));
2196throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementName, existing.Name, existing.Namespace));
2202throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Bad accessor type " + accessor.GetType().FullName));
2204throw new InvalidOperationException(SR.Format(SR.XmlDuplicateAttributeName, existing.Name, existing.Namespace));
2238throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"The XML attribute/element '{accessor.Namespace}{accessor.Name}' does not have an existing accessor to remove."));
2260if (isQualified && form == XmlSchemaForm.Unqualified) throw new InvalidOperationException(SR.XmlInvalidFormUnqualified);
2267if (isNullable && !typeDesc.IsNullable) throw new InvalidOperationException(SR.Format(SR.XmlInvalidIsNullable, typeDesc.FullName));
System\Xml\Serialization\XmlSchemaExporter.cs (24)
79throw new InvalidOperationException(SR.Format(SR.XmlBareAttributeMember, member.Attribute.Name));
81throw new InvalidOperationException(SR.Format(SR.XmlBareTextMember, member.Text.Name));
86throw new InvalidOperationException(SR.Format(SR.XmlIllegalArrayElement, member.Elements[0].Name));
225throw new InvalidOperationException(SR.XmlMappingsScopeMismatch);
236throw new InvalidOperationException(SR.XmlIllegalWildcard);
261throw new InvalidOperationException(SR.Format(SR.XmlDuplicateTypeName, newTypeName, newNamespace));
287throw new InvalidOperationException(SR.Format(SR.XmlIllegalForm, e.Name));
293throw new InvalidOperationException(SR.Format(SR.XmlIllegalForm, a.Name));
511throw new InvalidOperationException(SR.Format(SR.XmlDuplicateNamespace, anyNs));
562throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"Unsupported anonymous mapping type: {mapping}"));
619throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Type " + mapping.TypeName + " from namespace '" + ns + "' is an invalid array mapping"));
681throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name));
792throw new InvalidOperationException(SR.XmlInternalError);
876if (value.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, SR.Format(SR.XmlInvalidDefaultValue, value, value.GetType().FullName)));
916throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Mapping for " + pm.TypeDesc.Name + " missing type property"));
932throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, value, pm.TypeDesc.Name));
935throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, value, pm.TypeDesc.Name));
969throw new InvalidOperationException(SR.Format(SR.XmlCircularReference2, mapping.TypeDesc.Name, "AnonymousType", "false"));
975if (!mapping.IncludeInSchema) throw new InvalidOperationException(SR.Format(SR.XmlCannotIncludeInSchema, mapping.TypeDesc.Name));
990throw new InvalidOperationException(SR.Format(SR.XmlAnonymousBaseType, mapping.TypeDesc.Name, mapping.BaseMapping.TypeDesc!.Name, "AnonymousType", "false"));
1051throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, name));
1074throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name));
1096throw new InvalidOperationException(SR.Format(SR.XmlAnonymousBaseType, textMapping.TypeDesc!.Name, pm.TypeDesc!.Name, "AnonymousType", "false"));
1143if (!mapping.IncludeInSchema) throw new InvalidOperationException(SR.Format(SR.XmlCannotIncludeInSchema, mapping.TypeDesc!.Name));
System\Xml\Serialization\XmlSchemaImporter.cs (17)
71throw new InvalidOperationException(SR.Format(SR.XmlBadBaseElement, name.Name, name.Namespace, baseType.FullName));
124throw new InvalidOperationException(SR.Format(SR.XmlBadBaseType, typeName.Name, typeName.Namespace, baseType.FullName));
285throw new InvalidOperationException(SR.Format(SR.XmlElementHasNoName, parentType.Name, parentType.Namespace));
365throw new InvalidOperationException(SR.Format(SR.XmlElementImportedTwice, element.Name, ns, mapping.GetType().Name, desiredMappingType.Name));
434throw new InvalidOperationException(SR.XmlInternalError);
481if (!type.DerivedFrom.IsEmpty) throw new InvalidOperationException(SR.XmlMembersDeriveError);
544throw new InvalidOperationException(SR.Format(SR.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace));
591throw new InvalidOperationException(SR.Format(SR.XmlIllegalOverride, type.Name, baseMember.Name, baseMember.TypeDesc!.FullName, structMapping.Members[i].TypeDesc!.FullName, declaringMapping!.TypeDesc!.FullName));
993throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementInScope, element.Name, element.Namespace));
997throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementInScope1, element.Name, element.Namespace));
1614if (attribute.Name!.Length == 0) throw new InvalidOperationException(SR.XmlAttributeHasNoName);
1859throw new InvalidOperationException(SR.Format(SR.XmlMissingGroup, name.Name));
1868throw new InvalidOperationException(SR.Format(SR.XmlMissingAttributeGroup, name.Name));
1936throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncoding, name));
1940throw new InvalidOperationException(SR.Format(SR.XmlMissingDataType, name));
1966throw new InvalidOperationException(SR.Format(SR.XmlMissingElement, name));
1974throw new InvalidOperationException(SR.Format(SR.XmlMissingAttribute, name.Name));
System\Xml\Serialization\XmlSerializationReader.cs (29)
948if (arrayInfo.dimensions != 1) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()));
950if (qname.Name != name) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeName, qname.Name, name, CurrentTag()));
951if (qname.Namespace != ns) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeNamespace, qname.Namespace, ns, CurrentTag()));
1160throw new InvalidOperationException(SR.Format(SR.XmlUndefinedAlias, prefix));
1285return new InvalidOperationException(SR.Format(SR.XmlUnknownType, type.Name, type.Namespace, CurrentTag()));
1290return new InvalidOperationException(SR.Format(SR.XmlReadOnlyCollection, name));
1295return new InvalidOperationException(SR.Format(SR.XmlAbstractType, name, ns, CurrentTag()));
1300return new InvalidOperationException(SR.Format(SR.XmlConstructorInaccessible, typeName));
1305return new InvalidOperationException(SR.Format(SR.XmlConstructorHasSecurityAttributes, typeName));
1310return new InvalidOperationException(SR.Format(SR.XmlUnknownNode, CurrentTag()));
1315return new InvalidOperationException(SR.Format(SR.XmlUnknownConstant, value, enumType.Name));
1335return new InvalidOperationException(SR.Format(SR.XmlSerializableBadDerivation, xsdDerived, nsDerived, xsdBase, nsBase, clrDerived, clrBase));
1340return new InvalidOperationException(SR.Format(SR.XmlSerializableMissingClrType, name, ns, nameof(XmlIncludeAttribute), clrType));
1427if (!href.StartsWith('#')) throw new InvalidOperationException(SR.Format(SR.XmlMissingHref, href));
1478throw new InvalidOperationException(SR.Format(SR.XmlInvalidHref, id));
1547throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayRef, id, o.GetType().FullName, i.ToString(CultureInfo.InvariantCulture)));
1580if (arrayInfo.dimensions != 1) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()));
2459if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
2826if (enumMethodName == null) throw new InvalidOperationException(SR.Format(SR.XmlMissingMethodEnum, mapping.TypeDesc!.Name));
3070if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc!.Name));
3107if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, enumMapping.TypeDesc!.Name));
3344throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order"));
3822throw new InvalidOperationException(SR.XmlInternalError);
4085throw new InvalidOperationException(SR.XmlInternalError);
4635if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, element.Mapping.TypeDesc!.Name));
4782if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.Name));
4861throw new InvalidOperationException(SR.XmlInternalError);
4866throw new InvalidOperationException(SR.XmlInternalError);
4872if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "need parent for the " + source));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (12)
369if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
685if (enumMethodName == null) throw new InvalidOperationException(SR.Format(SR.XmlMissingMethodEnum, mapping.TypeDesc!.Name));
1142if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc!.Name));
1197if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, enumMapping.TypeDesc!.Name));
1568throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order"));
2063throw new InvalidOperationException(SR.XmlInternalError);
2351throw new InvalidOperationException(SR.XmlInternalError);
2979if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, element.Mapping.TypeDesc!.Name));
3128if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.Name));
3246throw new InvalidOperationException(SR.XmlInternalError);
3251throw new InvalidOperationException(SR.XmlInternalError);
3257if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "need parent for the " + source));
System\Xml\Serialization\XmlSerializationWriter.cs (30)
500if (_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(SR.Format(SR.XmlCircularReference, o.GetType().FullName));
546throw new InvalidOperationException(SR.Format(SR.XmlInvalidXmlns, alias));
658if (!_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "missing stack object of type " + o.GetType().FullName));
783throw new InvalidOperationException(SR.XmlNoAttributeHere);
799throw new InvalidOperationException(SR.Format(SR.XmlElementNameMismatch, node.LocalName, node.NamespaceURI, name, ns));
820if (typeof(IXmlSerializable).IsAssignableFrom(type)) return new InvalidOperationException(SR.Format(SR.XmlInvalidSerializable, type.FullName));
822if (!typeDesc.IsStructLike) return new InvalidOperationException(SR.Format(SR.XmlInvalidUseOfType, type.FullName));
823return new InvalidOperationException(SR.Format(SR.XmlUnxpectedType, type.FullName));
829return new InvalidOperationException(SR.Format(SR.XmlChoiceMismatchChoiceException, elementName, value, enumValue));
834return new InvalidOperationException(SR.Format(SR.XmlUnknownAnyElement, name, ns));
839return new InvalidOperationException(SR.Format(SR.XmlInvalidChoiceIdentifierValue, type, identifier));
845return new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMismatch, value, identifier, name, ns));
850return new InvalidOperationException(SR.Format(SR.XmlUnknownConstant, value, typeName));
860return new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, type.FullName));
929if (attr == null) throw new InvalidOperationException(SR.XmlNeedAttributeHere);
1284if (!typeof(IEnumerable).IsAssignableFrom(type)) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "not array like type " + type.FullName));
1448throw new InvalidOperationException(SR.Format(SR.XmlDuplicateNs, prefix, ns));
1797throw new InvalidOperationException(SR.Format(SR.XmlSerializerUnsupportedType, memberInfos[0]));
2408if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.Name) + Environment.StackTrace);
2456if (defaultValue!.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name));
2759if (enumSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
2987if (methodName == null) throw new InvalidOperationException("derived from " + mapping.TypeDesc!.FullName + ", " + SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc.Name) + Environment.StackTrace);
3026if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace);
3473throw new InvalidOperationException(SR.XmlInternalError);
3904throw new InvalidOperationException(SR.XmlInternalError);
4113if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, structMapping.TypeDesc!.Name) + Environment.StackTrace);
4172throw new InvalidOperationException(SR.XmlInternalError);
4377throw new InvalidOperationException(SR.Format(SR.XmlUnsupportedDefaultType, type.FullName));
4486throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc!.FullName));
4489throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingValue, choiceMapping.TypeDesc!.FullName, $"{element.Namespace}:{element.Name}", element.Name, element.Namespace));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
127if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.Name));
201if (defaultValue!.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name));
519if (enumSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
748if (methodName == null) throw new InvalidOperationException("derived from " + mapping.TypeDesc!.FullName + ", " + SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc.Name));
799if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc.Name));
1375throw new InvalidOperationException(SR.XmlInternalError);
1891throw new InvalidOperationException(SR.XmlInternalError);
1994if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, structMapping.TypeDesc!.Name));
2060throw new InvalidOperationException(SR.XmlInternalError);
2277throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc!.FullName));
2280throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingValue, choiceMapping.TypeDesc!.FullName, $"{element.Namespace}:{element.Name}", element.Name, element.Namespace));
System.Private.Xml.Linq (56)
System.Reflection.Context (10)
System.Reflection.Emit (27)
System.Reflection.Metadata (25)
System.Reflection.MetadataLoadContext (109)
System\Reflection\TypeLoading\Properties\RoProperty.cs (7)
156throw new InvalidOperationException(SR.Arg_EnumLitValueNotFound);
167public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
168public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
169public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
170public sealed override object GetConstantValue() => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
171public sealed override object GetValue(object? obj, BindingFlags invokeAttr, Binder? binder, object?[]? index, CultureInfo? culture) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
172public sealed override void SetValue(object? obj, object? value, BindingFlags invokeAttr, Binder? binder, object?[]? index, CultureInfo? culture) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System.Reflection.TypeExtensions (1)
System.Resources.Extensions (19)
System.Resources.Writer (7)
System.Runtime.Caching (3)
System.Runtime.InteropServices (4)
System.Runtime.Serialization.Schema (11)
System\Runtime\Serialization\Schema\CodeExporter.cs (7)
81throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.CLRNamespaceMappedMultipleTimes, currentDataContractNamespace, dataContractNamespace, clrNamespace)));
551throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.XmlName.Name, dataContract.XmlName.Namespace)));
569throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.XmlName.Name, dataContract.XmlName.Namespace)));
579throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.ReferencedTypeDoesNotMatch,
1054throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.CannotDeriveFromSealedReferenceType, dataContract.XmlName.Name, dataContract.XmlName.Namespace, GetClrTypeFullName(baseType))));
1201throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(
1229throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.ReferencedBaseTypeDoesNotExist,
System.Security.Claims (3)
System.Security.Cryptography (63)
System.Security.Cryptography.Cose (33)
System.Security.Cryptography.Pkcs (38)
System.ServiceModel.Federation (14)
System.ServiceModel.NetFramingBase (16)
System.ServiceModel.Primitives.Tests (8)
System.ServiceModel.Syndication (11)
System.ServiceModel.UnixDomainSocket (1)
System.Text.Json (74)
System\Text\Json\ThrowHelper.Serialization.cs (59)
64throw new InvalidOperationException(SR.Format(SR.DeserializeUnableToAssignNull, declaredType));
88throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPopulateNotSupportedByConverter, propertyInfo.Name, propertyInfo.DeclaringType));
94throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyMustHaveAGetter, propertyInfo.Name, propertyInfo.DeclaringType));
100throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyValueTypeMustHaveASetter, propertyInfo.Name, propertyInfo.DeclaringType));
106throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyCannotAllowPolymorphicDeserialization, propertyInfo.Name, propertyInfo.DeclaringType));
112throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyCannotAllowReadOnlyMember, propertyInfo.Name, propertyInfo.DeclaringType));
118throw new InvalidOperationException(SR.ObjectCreationHandlingPropertyCannotAllowReferenceHandling);
170throw new InvalidOperationException(SR.Format(SR.CannotSerializeInvalidType, typeToConvert));
174throw new InvalidOperationException(SR.Format(SR.CannotSerializeInvalidMember, typeToConvert, memberInfo.Name, declaringType));
180throw new InvalidOperationException(SR.Format(SR.SerializationConverterNotCompatible, converterType, type));
186throw new InvalidOperationException(SR.Format(SR.ResolverTypeNotCompatible, actualType, requestedType));
192throw new InvalidOperationException(SR.ResolverTypeInfoOptionsNotCompatible);
198throw new InvalidOperationException(SR.JsonSerializerOptionsNoTypeInfoResolverSpecified);
204throw new InvalidOperationException(SR.JsonSerializerIsReflectionDisabled);
216throw new InvalidOperationException(SR.Format(SR.SerializationConverterOnAttributeInvalid, location));
229throw new InvalidOperationException(SR.Format(SR.SerializationConverterOnAttributeNotCompatible, location, typeToConvert));
239throw new InvalidOperationException(message);
245throw new InvalidOperationException(SR.DefaultTypeInfoResolverImmutable);
251throw new InvalidOperationException(SR.TypeInfoResolverChainImmutable);
257throw new InvalidOperationException(SR.TypeInfoImmutable);
263throw new InvalidOperationException(SR.SerializerOptions_InvalidChainedResolver);
269throw new InvalidOperationException(SR.Format(SR.SerializerPropertyNameConflict, type, propertyName));
275throw new InvalidOperationException(SR.Format(SR.SerializerPropertyNameNull, jsonPropertyInfo.DeclaringType, jsonPropertyInfo.MemberName));
281throw new InvalidOperationException(SR.Format(SR.JsonPropertyRequiredAndNotDeserializable, jsonPropertyInfo.Name, jsonPropertyInfo.DeclaringType));
287throw new InvalidOperationException(SR.Format(SR.JsonPropertyRequiredAndExtensionData, jsonPropertyInfo.Name, jsonPropertyInfo.DeclaringType));
369throw new InvalidOperationException(SR.Format(SR.NamingPolicyReturnNull, namingPolicy));
375throw new InvalidOperationException(SR.Format(SR.SerializerConverterFactoryReturnsNull, converterType));
381throw new InvalidOperationException(SR.Format(SR.SerializerConverterFactoryReturnsJsonConverterFactory, converterType));
391throw new InvalidOperationException(
403throw new InvalidOperationException(SR.Format(SR.ConstructorParamIncompleteBinding, parentType));
409throw new InvalidOperationException(SR.Format(SR.ExtensionDataCannotBindToCtorParam, propertyName, jsonPropertyInfo.DeclaringType));
415throw new InvalidOperationException(SR.Format(SR.JsonIncludeOnInaccessibleProperty, memberName, declaringType));
421throw new InvalidOperationException(SR.Format(SR.IgnoreConditionOnValueTypeInvalid, clrPropertyName, propertyDeclaringType));
428throw new InvalidOperationException(SR.Format(SR.NumberHandlingOnPropertyInvalid, jsonPropertyInfo.MemberName, jsonPropertyInfo.DeclaringType));
434throw new InvalidOperationException(SR.Format(SR.ConverterCanConvertMultipleTypes, jsonConverter.GetType(), jsonConverter.Type, runtimePropertyType));
454throw new InvalidOperationException(SR.Format(SR.InvalidJsonTypeInfoOperationForKind, kind));
460throw new InvalidOperationException(SR.Format(SR.OnDeserializingCallbacksNotSupported, type));
466throw new InvalidOperationException(SR.Format(SR.CreateObjectConverterNotCompatible, type));
567throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateAttribute, attribute, location));
573throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateTypeAttribute, classType, attribute));
579throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateTypeAttribute, classType, typeof(TAttribute)));
585throw new InvalidOperationException(SR.Format(SR.ExtensionDataConflictsWithUnmappedMemberHandling, classType, jsonPropertyInfo.MemberName));
591throw new InvalidOperationException(SR.Format(SR.SerializationDataExtensionPropertyInvalid, jsonPropertyInfo.PropertyType, jsonPropertyInfo.MemberName));
597throw new InvalidOperationException(SR.Format(SR.PropertyTypeNotNullable, jsonPropertyInfo.PropertyType));
603throw new InvalidOperationException(SR.NodeJsonObjectCustomConverterNotAllowedOnExtensionProperty);
824throw new InvalidOperationException(SR.Format(SR.MetadataReferenceOfTypeCannotBeAssignedToType, referenceId, currentType, typeToConvert));
831throw new InvalidOperationException(SR.Format(SR.JsonPropertyInfoBoundToDifferentParent, propertyInfo.Name, propertyInfo.DeclaringTypeInfo.Type.FullName));
872throw new InvalidOperationException(SR.Format(SR.NoMetadataForType, type, resolver?.ToString() ?? "<null>"));
877return new InvalidOperationException(SR.Format(SR.NoMetadataForTypeProperties, resolver?.ToString() ?? "<null>", type));
919throw new InvalidOperationException(SR.Format(SR.Polymorphism_TypeDoesNotSupportPolymorphism, baseType));
925throw new InvalidOperationException(SR.Format(SR.Polymorphism_DerivedTypeIsNotSupported, derivedType, baseType));
931throw new InvalidOperationException(SR.Format(SR.Polymorphism_DerivedTypeIsAlreadySpecified, baseType, derivedType));
937throw new InvalidOperationException(SR.Format(SR.Polymorphism_TypeDicriminatorIdIsAlreadySpecified, baseType, typeDiscriminator));
943throw new InvalidOperationException(SR.Polymorphism_InvalidCustomTypeDiscriminatorPropertyName);
949throw new InvalidOperationException(SR.Format(SR.Polymorphism_PropertyConflictsWithMetadataPropertyName, type, propertyName));
955throw new InvalidOperationException(SR.Format(SR.Polymorphism_ConfigurationDoesNotSpecifyDerivedTypes, baseType));
961throw new InvalidOperationException(SR.Format(SR.UnsupportedEnumIdentifier, enumType.Name, enumName));
985throw new InvalidOperationException(SR.Format(SR.PipeWriter_DoesNotImplementUnflushedBytes, pipeWriter.GetType().Name));
997throw new InvalidOperationException(SR.JsonSchemaExporter_DepthTooLarge);
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (5)
System.Text.RegularExpressions.Generator (1)
System.Threading (16)
System.Threading.Channels (5)
System.Threading.Tasks.Dataflow (11)
System.Threading.Tasks.Parallel (13)
System.Transactions.Local (6)
System.Windows.Controls.Ribbon (38)
System.Windows.Forms (548)
System.Windows.Forms.Design (57)
System.Windows.Forms.Design.Tests (3)
System.Windows.Forms.IntegrationTests.Common (1)
System.Windows.Forms.Primitives (3)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.UI.IntegrationTests (7)
System.Windows.Input.Manipulations (4)
System.Xaml (51)
System\Xaml\XamlXmlWriter.cs (11)
398throw new InvalidOperationException(SR.Format(SR.PrefixNotInFrames, prefix));
1041throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember"));
1048throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember"));
1092throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteEndObject"));
1251throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteValue"));
1288throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, value, containingXamlType.Name));
1387throw new InvalidOperationException(SR.XamlXmlWriterWriteObjectNotSupportedInCurrentState);
1399throw new InvalidOperationException(SR.XamlXmlWriterIsObjectFromMemberSetForArraysOrNonCollections);
1492throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, writer.deferredValue, containingXamlType.Name));
2040throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, operation));
2065throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteGetObject"));
Templates.Blazor.Tests (21)
Templates.Blazor.WebAssembly.Auth.Tests (26)
Templates.Blazor.WebAssembly.Tests (26)
Templates.Mvc.Tests (26)
Templates.Tests (26)
Test.Utilities (20)
TestingAppHost1.AppHost (4)
Text.Analyzers (26)
UIAutomationClient (40)
UIAutomationClientSideProviders (95)
UIAutomationTypes (3)
vbc (5)
VBCSCompiler (5)
VBCSCompiler.UnitTests (2)
VersioningWebSite (1)
Wasm.Performance.ConsoleHost (1)
WebFrontEnd (1)
WindowsFormsIntegration (2)
WinFormsControlsTest (2)
XmlFormattersWebSite (1)
xunit.assert (7)
xunit.console (3)