17 types derived from InvalidOperationException
dotnet-svcutil.xmlserializer (2)
dotnet-svcutil-lib (1)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.Maui.Essentials (1)
PresentationFramework (1)
System.Net.Ping (1)
System.Net.Requests (3)
System.Private.CoreLib (2)
System.Threading.Channels (2)
UIAutomationTypes (1)
10581 instantiations of InvalidOperationException
AnalyzerRunner (1)
Aspire.Azure.AI.OpenAI (2)
Aspire.Azure.Data.Tables (1)
Aspire.Azure.Messaging.EventHubs (7)
Aspire.Azure.Messaging.EventHubs.Tests (2)
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Azure.Messaging.WebPubSub (2)
Aspire.Azure.Search.Documents (1)
Aspire.Azure.Security.KeyVault (2)
Aspire.Azure.Security.KeyVault.Tests (1)
Aspire.Azure.Storage.Blobs (1)
Aspire.Azure.Storage.Queues (1)
Aspire.Confluent.Kafka (3)
Aspire.Confluent.Kafka.Tests (2)
Aspire.Dashboard (39)
Aspire.Dashboard.Components.Tests (7)
Aspire.Dashboard.Tests (4)
Aspire.Elastic.Clients.Elasticsearch (1)
Aspire.Elastic.Clients.Elasticsearch.Tests (1)
Aspire.EndToEnd.Tests (12)
Aspire.Hosting (51)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (12)
Aspire.Hosting.Azure.CosmosDB (2)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.PostgreSQL (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Storage (2)
Aspire.Hosting.Dapr (2)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Kafka (1)
Aspire.Hosting.Kafka.Tests (1)
Aspire.Hosting.Keycloak (1)
Aspire.Hosting.MongoDB (2)
Aspire.Hosting.MySql (1)
Aspire.Hosting.NodeJs.Tests (1)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.Orleans (1)
Aspire.Hosting.PostgreSQL (1)
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 (1)
Aspire.Hosting.Testing (8)
Aspire.Hosting.Testing.Tests (2)
Aspire.Hosting.Tests (21)
Aspire.Hosting.Valkey (1)
Aspire.Microsoft.Azure.Cosmos (1)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.Data.SqlClient.Tests (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (5)
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 (2)
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 (2)
Aspire.Pomelo.EntityFrameworkCore.MySql (7)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (1)
Aspire.Qdrant.Client (1)
Aspire.Qdrant.Client.Tests (1)
Aspire.RabbitMQ.Client.Tests (4)
Aspire.RabbitMQ.Client.v7.Tests (4)
Aspire.RuntimeIdentifier.Tool (1)
Aspire.Seq (1)
Aspire.StackExchange.Redis (1)
Aspire.StackExchange.Redis.Tests (1)
Aspire.Workload.Tests (10)
BasicTestApp (3)
BasicWebSite (11)
Benchmarks (1)
BoundTreeGenerator (2)
BuildActionTelemetryTable (1)
BuildBoss (1)
BuildValidator (4)
ClientSample (3)
CodeGenerator (1)
CodeStyleConfigFileGenerator (3)
ConfigurationSchemaGenerator (12)
csc (5)
CSharpSyntaxGenerator (5)
DesignSurfaceExt (9)
Diagnostics.EFCore.FunctionalTests (1)
dotnet-dev-certs (11)
dotnet-getdocument (1)
dotnet-openapi (1)
dotnet-razorpagegenerator (1)
dotnet-sql-cache (1)
dotnet-svcutil-lib (1102)
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\Compilation.cs (8)
114throw new InvalidOperationException(string.Format(ResXml.XmlSerializerExpired, assembly.FullName, /*assembly.CodeBase*/ null), missingMethod);
123if (type == null) throw new InvalidOperationException(string.Format(ResXml.XmlMissingType, typeName, assembly.FullName));
148throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncoding3, encodingStyle, Soap.Encoding, Soap12.Encoding));
153throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncodingNotEncoded1, encodingStyle));
183throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.Name));
191throw new InvalidOperationException(ResXml.XmlNoPartialTrust, e);
217throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.Name));
225throw new InvalidOperationException(ResXml.XmlNoPartialTrust, e);
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 (21)
174return new InvalidOperationException(string.Format(ResXml.XmlReflectionError, context), e);
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 (98)
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)));
370return new InvalidOperationException(string.Format(ResXml.XmlReflectionError, context), e);
375return new InvalidOperationException(string.Format(ResXml.XmlTypeReflectionError, context), e);
380return new InvalidOperationException(string.Format(model.IsProperty ? ResXml.XmlPropertyReflectionError : ResXml.XmlFieldReflectionError, model.Name), e);
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\XmlSchemas.cs (7)
65throw new InvalidOperationException(string.Format(ResXml.XmlSchemaDuplicateNamespace, ns));
273if (_isCompiled) throw new InvalidOperationException(ResXml.XmlSchemaCompiled);
366throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "XmlSchemas.Find: Invalid object type " + type.FullName));
500throw new InvalidOperationException(string.Format(ResXml.XmlSchemaIncludeLocation, this.GetType().Name, external.SchemaLocation));
525throw new InvalidOperationException(MergeFailedMessage(o, dest, schema.TargetNamespace));
802throw new InvalidOperationException(GetSchemaItem(source, null, message), exception);
818throw new InvalidOperationException(string.Format(ResXml.XmlSchemaSyntaxErrorDetails, ns, message, exception.LineNumber, exception.LinePosition), exception);
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 (20)
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)));
487throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
492throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
501throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
506throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
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 (19)
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)));
1897return new InvalidOperationException(errorMessage, e);
1911return new InvalidOperationException(errorMessage, e);
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)
Extensibility.MessageInterceptor.IntegrationTests (4)
FormatterWebSite (1)
GenericHostWebSite (1)
GetDocument.Insider (4)
HealthChecksSandbox.AppHost (1)
HelixTestRunner (1)
http2cat (4)
HttpClientApp (2)
IdeBenchmarks (2)
Identity.DefaultUI.WebSite (2)
IdentitySample.DefaultUI (2)
IIS.FunctionalTests (11)
IIS.LongTests (9)
IIS.Microbenchmarks (1)
IIS.NewHandler.FunctionalTests (9)
IIS.NewShim.FunctionalTests (9)
IIS.ShadowCopy.Tests (8)
IIS.Tests (1)
IISExpress.FunctionalTests (11)
illink (31)
ILLink.RoslynAnalyzer (19)
ILLink.Tasks (1)
Infrastructure.Common (10)
InMemory.FunctionalTests (33)
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));
InProcessWebSite (3)
Interop.FunctionalTests (11)
InteropClient (11)
InteropTests (3)
IOperationGenerator (2)
Keycloak.Web (1)
KeyManagementSimulator (2)
Microsoft.Analyzers.Local (4)
Microsoft.Analyzers.Local.Tests (3)
Microsoft.Arcade.Common (3)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore (9)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Antiforgery (4)
Microsoft.AspNetCore.App.Analyzers (24)
Infrastructure\RoutePattern\RoutePatternNodes.cs (10)
92_ => throw new InvalidOperationException(),
158_ => throw new InvalidOperationException(),
182_ => throw new InvalidOperationException(),
206_ => throw new InvalidOperationException(),
230_ => throw new InvalidOperationException(),
254_ => throw new InvalidOperationException(),
282_ => throw new InvalidOperationException(),
306_ => throw new InvalidOperationException(),
365_ => throw new InvalidOperationException(),
389_ => throw new InvalidOperationException(),
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.AsyncState (2)
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 (12)
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 (100)
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 (67)
Microsoft.AspNetCore.Components.Endpoints.Tests (12)
Microsoft.AspNetCore.Components.Forms (7)
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 (29)
Microsoft.AspNetCore.Components.Server.Tests (8)
Microsoft.AspNetCore.Components.Tests (22)
Microsoft.AspNetCore.Components.Web (50)
Microsoft.AspNetCore.Components.Web.Tests (3)
Microsoft.AspNetCore.Components.WebAssembly (26)
Microsoft.AspNetCore.Components.WebAssembly.Server (8)
Microsoft.AspNetCore.Components.WebView (10)
Microsoft.AspNetCore.Components.WebView.Maui (5)
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 (2)
Microsoft.AspNetCore.Connections.Abstractions (2)
Microsoft.AspNetCore.CookiePolicy (2)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.DataProtection (15)
Microsoft.AspNetCore.DataProtection.Abstractions (1)
Microsoft.AspNetCore.DataProtection.Tests (9)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (10)
Microsoft.AspNetCore.Diagnostics (3)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (16)
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 (30)
ExceptionHandlerMiddlewareTest.cs (9)
95var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor);
119var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor);
140var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers);
165var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers);
195var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers);
237var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, meterFactory);
259var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, meterFactory);
284var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, meterFactory: meterFactory);
435var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, meterFactory: meterFactory);
Microsoft.AspNetCore.Grpc.JsonTranscoding (72)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (7)
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.Swagger (39)
Microsoft.AspNetCore.HeaderParsing (2)
Microsoft.AspNetCore.HeaderPropagation (2)
Microsoft.AspNetCore.HostFiltering (1)
Microsoft.AspNetCore.Hosting (20)
Microsoft.AspNetCore.Hosting.FunctionalTests (3)
Microsoft.AspNetCore.Hosting.Tests (17)
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 (6)
Microsoft.AspNetCore.Http.Extensions (58)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.Results (13)
Microsoft.AspNetCore.Http.Results.Tests (1)
Microsoft.AspNetCore.HttpLogging (6)
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.AspNetCore.Identity (3)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (7)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
Microsoft.AspNetCore.Identity.InMemory.Test (2)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Identity.UI (28)
Microsoft.AspNetCore.InternalTesting (5)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.Mvc.Abstractions (11)
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.Core (102)
Microsoft.AspNetCore.Mvc.Core.Test (12)
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 (2)
Microsoft.AspNetCore.Mvc.TagHelpers (15)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
Microsoft.AspNetCore.Mvc.Testing (5)
Microsoft.AspNetCore.Mvc.ViewFeatures (51)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Microsoft.AspNetCore.OpenApi (17)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching (8)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (7)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin (2)
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 (6)
Microsoft.AspNetCore.Routing (47)
Microsoft.AspNetCore.Routing.FunctionalTests (2)
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
Microsoft.AspNetCore.Routing.Tests (3)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (41)
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 (8)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (40)
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 (103)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (21)
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.Microbenchmarks (30)
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.Tests (3)
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 (19)
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 (10)
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.Session (2)
Microsoft.AspNetCore.Session.Tests (5)
Microsoft.AspNetCore.Shared.Tests (21)
Microsoft.AspNetCore.SignalR (1)
Microsoft.AspNetCore.SignalR.Client.Core (19)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (10)
Microsoft.AspNetCore.SignalR.Client.Tests (9)
Microsoft.AspNetCore.SignalR.Common (4)
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Microsoft.AspNetCore.SignalR.Core (22)
Microsoft.AspNetCore.SignalR.Microbenchmarks (11)
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 (11)
Microsoft.AspNetCore.StaticAssets (14)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.TestHost (18)
Microsoft.AspNetCore.TestHost.Tests (13)
Microsoft.AspNetCore.Testing (3)
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 (5)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.Build (31)
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Engine.UnitTests (7)
Microsoft.Build.Framework (11)
Microsoft.Build.Tasks.CodeAnalysis (7)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
Microsoft.Build.Tasks.Core (7)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.UnitTests.Shared (2)
Microsoft.Build.Utilities.Core (6)
Microsoft.Build.Utilities.UnitTests (4)
Microsoft.Cci.Extensions (6)
Microsoft.CodeAnalysis (83)
Microsoft.CodeAnalysis.CodeStyle (39)
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
Microsoft.CodeAnalysis.Collections.Package (7)
Microsoft.CodeAnalysis.Compiler.Test.Resources (1)
Microsoft.CodeAnalysis.CSharp (20)
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (7)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.Debugging.Package (13)
Microsoft.CodeAnalysis.EditorFeatures (10)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.EditorFeatures.Text (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (20)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (4)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (9)
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (83)
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (39)
39_ => throw new InvalidOperationException(),
90_ => throw new InvalidOperationException(),
133_ => throw new InvalidOperationException(),
164_ => throw new InvalidOperationException(),
200_ => throw new InvalidOperationException(),
234_ => throw new InvalidOperationException(),
283_ => throw new InvalidOperationException(),
326_ => throw new InvalidOperationException(),
358_ => throw new InvalidOperationException(),
390_ => throw new InvalidOperationException(),
425_ => throw new InvalidOperationException(),
473_ => throw new InvalidOperationException(),
507_ => throw new InvalidOperationException(),
545_ => throw new InvalidOperationException(),
572_ => throw new InvalidOperationException(),
645_ => throw new InvalidOperationException(),
696_ => throw new InvalidOperationException(),
733_ => throw new InvalidOperationException(),
769_ => throw new InvalidOperationException(),
805_ => throw new InvalidOperationException(),
841_ => throw new InvalidOperationException(),
892_ => throw new InvalidOperationException(),
929_ => throw new InvalidOperationException(),
965_ => throw new InvalidOperationException(),
1007_ => throw new InvalidOperationException(),
1056_ => throw new InvalidOperationException(),
1111_ => throw new InvalidOperationException(),
1147_ => throw new InvalidOperationException(),
1200_ => throw new InvalidOperationException(),
1219_ => throw new InvalidOperationException(),
1238_ => throw new InvalidOperationException(),
1260_ => throw new InvalidOperationException(),
1282_ => throw new InvalidOperationException(),
1304_ => throw new InvalidOperationException(),
1330_ => throw new InvalidOperationException(),
1358_ => throw new InvalidOperationException(),
1382throw new InvalidOperationException();
1403_ => throw new InvalidOperationException(),
1442_ => throw new InvalidOperationException(),
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (4)
Microsoft.CodeAnalysis.LanguageServer (7)
Microsoft.CodeAnalysis.LanguageServer.Protocol (53)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (9)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Microsoft.CodeAnalysis.Rebuild (9)
Microsoft.CodeAnalysis.Rebuild.UnitTests (5)
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Microsoft.CodeAnalysis.Remote.Workspaces (2)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Test.Utilities (32)
Microsoft.CodeAnalysis.UnitTests (10)
Microsoft.CodeAnalysis.Workspaces (125)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (19)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
Microsoft.CodeAnalysis.XunitHook (1)
Microsoft.CommonLanguageServerProtocol.Framework.Package (31)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Microsoft.Data.Analysis (2)
Microsoft.Data.Analysis.Tests (2)
Microsoft.DotNet.Arcade.Sdk (5)
Microsoft.DotNet.ArcadeAzureIntegration (3)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Installers (7)
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 (9)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (5)
Microsoft.DotNet.VersionTools (2)
Microsoft.DotNet.XliffTasks (4)
Microsoft.DotNet.XUnitAssert.Tests (10)
Microsoft.DotNet.XUnitExtensions (4)
Microsoft.Extensions.AI (14)
Microsoft.Extensions.AI.Abstractions (11)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.AzureAIInference (5)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.Ollama (8)
Microsoft.Extensions.AI.OpenAI (6)
Microsoft.Extensions.AI.OpenAI.Tests (2)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.AmbientMetadata.Application (2)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Extensions.ApiDescription.Tool.Tests (2)
Microsoft.Extensions.AsyncState (3)
Microsoft.Extensions.Caching.Hybrid (10)
Microsoft.Extensions.Caching.Memory (1)
Microsoft.Extensions.Caching.SqlServer (2)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
Microsoft.Extensions.Compliance.Abstractions (2)
Microsoft.Extensions.Compliance.Redaction (8)
Microsoft.Extensions.Compliance.Testing (2)
Microsoft.Extensions.Configuration (3)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Binder (18)
ConfigurationBinder.cs (18)
243throw new InvalidOperationException(SR.Format(SR.Error_MissingConfig,
479throw new InvalidOperationException(SR.Format(SR.Error_FailedBinding, section.Path, type));
519throw new InvalidOperationException(SR.Format(SR.Error_CannotActivateAbstractOrInterface, type));
529throw new InvalidOperationException(SR.Format(SR.Error_MissingPublicInstanceConstructor, type));
534throw new InvalidOperationException(SR.Format(SR.Error_MultipleParameterizedConstructors, type));
544throw new InvalidOperationException(SR.Format(SR.Error_CannotBindToConstructorParameter, type, nameOfInvalidParameter));
552throw new InvalidOperationException(SR.Format(SR.Error_ConstructorParametersDoNotMatchProperties, type, nameOfInvalidParameters));
574throw new InvalidOperationException(SR.Format(SR.Error_FailedToActivate, type), ex);
577return instance ?? throw new InvalidOperationException(SR.Format(SR.Error_FailedToActivate, type));
754throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding,
793throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding,
810throw new InvalidOperationException(SR.Format(SR.Error_UnsupportedMultidimensionalArray, type));
849throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding,
920throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding,
961error = new InvalidOperationException(SR.Format(SR.Error_FailedBinding, path, type), ex);
974error = new InvalidOperationException(SR.Format(SR.Error_FailedBinding, path, type), ex);
1086throw new InvalidOperationException(SR.Format(SR.Error_ParameterBeingBoundToIsUnnamed, type));
1106throw new InvalidOperationException(SR.Format(SR.Error_ParameterHasNoMatchingConfig, type, parameterName));
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
Microsoft.Extensions.Configuration.UserSecrets (3)
Microsoft.Extensions.DependencyInjection (16)
Microsoft.Extensions.DependencyInjection.Abstractions (17)
ActivatorUtilities.cs (11)
59throw new InvalidOperationException(SR.CannotCreateAbstractClasses);
165throw new InvalidOperationException(SR.Format(SR.MultipleCtorsFoundWithBestLength, instanceType, bestLength));
392throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, type, requiredBy));
578throw new InvalidOperationException(SR.Format(SR.CtorNotLocated, instanceType));
616throw new InvalidOperationException(SR.Format(SR.MultipleCtorsFound, instanceType));
772throw new InvalidOperationException(SR.KeyedServicesNotSupported);
792throw new InvalidOperationException(SR.KeyedServicesNotSupported);
873throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, _constructor.Parameters[index].ParameterType, _constructor.Info.DeclaringType));
917throw new InvalidOperationException(SR.Format(SR.MultipleCtorsMarkedWithAttribute, nameof(ActivatorUtilitiesConstructorAttribute)));
922throw new InvalidOperationException(SR.Format(SR.MarkedCtorMissingArgumentTypes, nameof(ActivatorUtilitiesConstructorAttribute)));
1231throw new InvalidOperationException(SR.KeyedServicesNotSupported);
Microsoft.Extensions.DependencyInjection.AutoActivation (2)
Microsoft.Extensions.DependencyModel (3)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (9)
Microsoft.Extensions.Diagnostics.Probes (7)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (11)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
Microsoft.Extensions.Diagnostics.Testing (4)
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 (2)
Microsoft.Extensions.Hosting.WindowsServices (1)
Microsoft.Extensions.Http (8)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.Tests (3)
Microsoft.Extensions.Http.Polly (2)
Microsoft.Extensions.Http.Polly.Tests (6)
Microsoft.Extensions.Http.Resilience (9)
Microsoft.Extensions.Http.Resilience.Tests (4)
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 (2)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.Contextual (2)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (3)
Microsoft.Extensions.Resilience (2)
Microsoft.Extensions.Resilience.Tests (2)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
Microsoft.Extensions.ServiceDiscovery (8)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.Telemetry (10)
Microsoft.Extensions.Telemetry.Abstractions (2)
Microsoft.Extensions.Telemetry.Tests (5)
Microsoft.Extensions.TimeProvider.Testing (2)
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Generated.Tests (5)
Microsoft.Gen.Logging.Unit.Tests (3)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.Metrics.Unit.Tests (2)
Microsoft.Gen.MetricsReports (1)
Microsoft.Gen.MetricsReports.Unit.Tests (2)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (11)
Microsoft.JSInterop (4)
Microsoft.JSInterop.Tests (1)
Microsoft.Maui (130)
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 (155)
Microsoft.Maui.Controls.BindingSourceGen (1)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.Compatibility (13)
Microsoft.Maui.Controls.Xaml (4)
Microsoft.Maui.Essentials (7)
Microsoft.Maui.Graphics (7)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.AutoML (6)
Microsoft.ML.Core (12)
Utilities\Contracts.cs (10)
256=> Process(new InvalidOperationException());
258=> Process(new InvalidOperationException(), ctx);
260=> Process(new InvalidOperationException(msg));
262=> Process(new InvalidOperationException(msg), ctx);
264=> Process(new InvalidOperationException(GetMsg(msg, args)));
266=> Process(new InvalidOperationException(GetMsg(msg, args)), ctx);
268=> Process(new InvalidOperationException(msg, inner));
270=> Process(new InvalidOperationException(msg, inner), ctx);
272=> Process(new InvalidOperationException(GetMsg(msg, args), inner));
274=> Process(new InvalidOperationException(GetMsg(msg, args), inner), ctx);
Microsoft.ML.CpuMath (10)
src\Microsoft.ML.Core\Utilities\Contracts.cs (10)
256=> Process(new InvalidOperationException());
258=> Process(new InvalidOperationException(), ctx);
260=> Process(new InvalidOperationException(msg));
262=> Process(new InvalidOperationException(msg), ctx);
264=> Process(new InvalidOperationException(GetMsg(msg, args)));
266=> Process(new InvalidOperationException(GetMsg(msg, args)), ctx);
268=> Process(new InvalidOperationException(msg, inner));
270=> Process(new InvalidOperationException(msg, inner), ctx);
272=> Process(new InvalidOperationException(GetMsg(msg, args), inner));
274=> Process(new InvalidOperationException(GetMsg(msg, args), inner), ctx);
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 (11)
Microsoft.ML.TorchSharp (1)
Microsoft.Net.Http.Headers (1)
Microsoft.NET.StringTools (2)
Microsoft.NET.StringTools.net35 (1)
Microsoft.VisualBasic.Core (2)
Microsoft.VisualBasic.Tests (1)
Microsoft.VisualStudio.LanguageServices (47)
Microsoft.VisualStudio.LanguageServices.CSharp (7)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Microsoft.Web.Xdt.Extensions (1)
MSBuild (7)
MSBuildTaskHost (4)
Mvc.RoutingWebSite (2)
MyFrontend (1)
PresentationBuildTasks (26)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\TokenizerHelper.cs (8)
103throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperExtraDataEncountered, _charIndex, _str));
124throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperPrematureStringTermination, _str));
138throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperPrematureStringTermination, _str));
230throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperMissingEndQuote, _str));
241throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
261throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperExtraDataEncountered, _charIndex, _str));
279throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
298throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
PresentationCore (517)
PresentationCore.Tests (4)
PresentationFramework (890)
MS\Internal\Data\CollectionViewProxy.cs (13)
410throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "NewItemPlaceholderPosition"));
449throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
468throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitNew"));
485throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelNew"));
566throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "RemoveAt"));
582throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "Remove"));
606throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "EditItem"));
623throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitEdit"));
640throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelEdit"));
747throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
811throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveSorting", "CanChangeLiveSorting"));
834throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveFiltering", "CanChangeLiveFiltering"));
857throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveGrouping", "CanChangeLiveGrouping"));
MS\Internal\Data\PropertyPathWorker.cs (5)
1531_host?.ReportGetValueError(k, item, new InvalidOperationException(SR.Format(SR.NonCLSException, "GetValue")));
1580throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pi.Name));
1585throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pd.Name));
1590throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), dp.Name));
1595throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), dpa.PropertyName));
System\Windows\Controls\ItemCollection.cs (15)
247throw new InvalidOperationException(SR.ItemsSourceInUse);
336throw new InvalidOperationException(SR.ItemCollectionHasNoCollection);
889throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "NewItemPlaceholderPosition"));
928throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
947throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitNew"));
964throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelNew"));
1045throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "RemoveAt"));
1061throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "Remove"));
1085throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "EditItem"));
1102throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitEdit"));
1119throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelEdit"));
1226throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
1499throw new InvalidOperationException(SR.CannotUseItemsSource);
1934throw new InvalidOperationException(SR.ItemsSourceInUse);
1977throw new InvalidOperationException(SR.NoCheckOrChangeWhenDeferred);
System\Windows\Data\BindingListCollectionView.cs (22)
307throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "CustomFilter"));
370throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "GroupBySelector"));
430throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "NewItemPlaceholderPosition", "AddNew"));
570throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
650throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitNew", "EditItem"));
697throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelNew", "EditItem"));
873throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "RemoveAt"));
885throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Remove"));
898throw new InvalidOperationException(SR.RemovingPlaceholder);
981throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitEdit", "AddNew"));
1020throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelEdit", "AddNew"));
1034throw new InvalidOperationException(SR.CancelEditNotSupported);
1123set { throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveSorting", "CanChangeLiveSorting")); }
1135set { throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveFiltering", "CanChangeLiveFiltering")); }
1919throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
1931throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
1988throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
2171throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Sorting"));
2310throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
2320throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
2452throw new InvalidOperationException(SR.CannotMoveToUnknownPosition);
2517throw new InvalidOperationException(SR.BindingListCanOnlySortByOneProperty);
System\Windows\Data\ListCollectionView.cs (21)
438throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Filter"));
462throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "CustomSort"));
484throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
543throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "NewItemPlaceholderPosition", "AddNew"));
717throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
740throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
826throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitNew", "EditItem"));
942throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelNew", "EditItem"));
1051throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "RemoveAt"));
1063throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Remove"));
1076throw new InvalidOperationException(SR.RemovingPlaceholder);
1178throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitEdit", "AddNew"));
1286throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelEdit", "AddNew"));
1300throw new InvalidOperationException(SR.CancelEditNotSupported);
2519throw new InvalidOperationException(SR.CannotMoveToUnknownPosition);
2670throw new InvalidOperationException(SR.Format(SR.CollectionChangeIndexOutOfRange, index, ilFull.Count));
2677throw new InvalidOperationException(SR.Format(SR.AddedItemNotAtIndex, index));
2684throw new InvalidOperationException(SR.AddedItemNotInCollection);
2910throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Sorting"));
3003throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
3013throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
System\Windows\Data\XmlNamespaceMapping.cs (6)
47throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Prefix", this.GetType().Name));
49throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Prefix", this.GetType().Name));
66throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Uri", this.GetType().Name));
68throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Uri", this.GetType().Name));
138throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Prefix", this.GetType().Name));
142throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Uri", this.GetType().Name));
System\Windows\FrameworkElementFactory.cs (21)
73throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
78throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
117throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
122throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
141throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
161throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
173throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
200throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
278throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
303throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
339throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
545throw new InvalidOperationException(SR.NullTypeIllegal);
554throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild, _type.Name));
565throw new InvalidOperationException(SR.Format(SR.ChildNameNamePatternReserved, _childName));
651throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
906throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
924throw new InvalidOperationException(SR.FrameworkElementFactoryMustBeSealed);
952throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
1112throw new InvalidOperationException(SR.Format(SR.AlreadyHasLogicalChildren,
1120throw new InvalidOperationException(SR.Format(SR.CannotHookupFCERoot,
1184throw new InvalidOperationException(SR.Format(SR.MissingContentSource, prefix, targetType));
System\Windows\Markup\BamlReader.cs (14)
317throw new InvalidOperationException(SR.BamlReaderClosed);
658throw new InvalidOperationException(SR.Format(SR.ParserUnknownBaml,
991throw new InvalidOperationException(SR.Format(SR.BamlReaderNoOwnerType, attrInfo.Name, AssemblyName));
1027throw new InvalidOperationException(SR.Format(SR.ParserCantGetDPOrPi, info.Name));
1682throw new InvalidOperationException(SR.Format(SR.ParserUnknownBaml,
1797throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty));
1811throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty));
1855throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
1893throw new InvalidOperationException(SR.ParserMapPIMissingAssembly);
2040throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2147throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2257throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2398throw new InvalidOperationException(SR.BamlBadExtensionValue);
2478throw new InvalidOperationException(SR.BamlBadExtensionValue);
System\Windows\Media\Animation\Storyboard.cs (28)
271throw new InvalidOperationException(
277throw new InvalidOperationException(
284throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetNameNotDependencyObject, targetName ));
319throw new InvalidOperationException(
328throw new InvalidOperationException(
337throw new InvalidOperationException(
343throw new InvalidOperationException(
351throw new InvalidOperationException(SR.Format(SR.Storyboard_BeginStoryboardNameNotFound, targetName));
398throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetNameNotAllowedInStyle, nameString));
446throw new InvalidOperationException(SR.Format(SR.Storyboard_NoTarget, currentTimeline.GetType().ToString() ));
454throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetPropertyRequired, currentTimeline.GetType().ToString() ));
464throw new InvalidOperationException(SR.Storyboard_PropertyPathEmpty);
477throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyProperty, currentPropertyPath.Path ));
543throw new InvalidOperationException(SR.Format(SR.Storyboard_MediaElementNotFound, currentObjectName ));
557throw new InvalidOperationException(SR.Storyboard_MediaElementRequired);
691throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathObjectNotFound, AccessorName(path, i-1), path.Path ));
698throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathPropertyNotFound, path.Path ));
725throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathFrozenCheckFailed, AccessorName(path, i-1), path.Path, intermediateFreezable.GetType().ToString() ));
731throw new InvalidOperationException(SR.Format(SR.Storyboard_ImmutableTargetNotSupported, path.Path));
746throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyObject, AccessorName(path, i-1), path.Path));
751throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyProperty, path.Path ));
756throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathSealedCheckFailed, intermediateDP.Name, path.Path, intermediateDO));
761throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathIncludesNonAnimatableProperty, path.Path, intermediateDP.Name));
797throw new InvalidOperationException(SR.Format(SR.Storyboard_AnimationMismatch, animationClock.Timeline.GetType(), targetProperty.Name, targetProperty.PropertyType));
844throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathUnresolved, path.Path));
875throw new InvalidOperationException(SR.Format(SR.Storyboard_ImmutableTargetNotSupported, path.Path));
946throw new InvalidOperationException(SR.Format(SR.Storyboard_ComplexPathNotSupported, targetObject.GetType().ToString()));
1951throw new InvalidOperationException(SR.Storyboard_NeverApplied);
System\Windows\PropertyPath.cs (9)
80throw new InvalidOperationException(); // This is actually never called since CurrentDispatcher will throw if null.
376throw new InvalidOperationException(SR.Format(SR.PropertyPathSyntaxError, detail));
561throw new InvalidOperationException(SR.Format(SR.PropertyPathInvalidAccessor,
567throw new InvalidOperationException(SR.Format(SR.PathParametersIndexOutOfRange, index, PathParameters.Count));
584throw new InvalidOperationException(SR.Format(SR.PropertyPathNoOwnerType, ownerName));
644throw new InvalidOperationException(SR.Format(SR.PropertyPathNoProperty, ownerType.Name, propertyName));
733throw new InvalidOperationException(SR.Format(SR.PathParameterIsNull, index));
737throw new InvalidOperationException(SR.Format(SR.PathParametersIndexOutOfRange, index, PathParameters.Count));
761throw new InvalidOperationException(SR.Format(SR.PropertyPathIndexWrongType, paramList[i].parenString, paramList[i].valueString));
System\Windows\Style.cs (12)
159throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
198throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
305throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
473throw new InvalidOperationException(SR.Format(SR.StyleTargetTypeMismatchWithElement,
497throw new InvalidOperationException(SR.Format(SR.NullPropertyIllegal, "TargetType"));
505throw new InvalidOperationException(SR.Format(SR.MustBaseOnStyleOfABaseType, _targetType.Name));
584throw new InvalidOperationException(SR.Format(
637throw new InvalidOperationException(SR.Format(SR.SetterOnStyleNotAllowedToHaveTarget, setter.TargetName));
741throw new InvalidOperationException(SR.StyleTriggersCannotTargetTheTemplate);
749throw new InvalidOperationException(SR.Format(SR.TriggerOnStyleNotAllowedToHaveSource, conditions[k].SourceName));
793throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInStyle, trigger.GetType().Name));
803throw new InvalidOperationException(SR.Format(SR.EventTriggerOnStyleNotAllowedToHaveTarget, eventTrigger.SourceName));
System\Windows\StyleHelper.cs (18)
110throw new InvalidOperationException(SR.CannotHaveOverridesDefaultStyleInThemeStyle);
116throw new InvalidOperationException(SR.CannotHaveEventHandlersInThemeStyle);
229throw new InvalidOperationException(SR.Format(
435throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name));
442throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name));
449throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name));
456throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name));
463throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name));
500throw new InvalidOperationException(SR.Format(SR.NameNotFound, propertyValue.ChildName));
555throw new InvalidOperationException(SR.MissingTriggerProperty);
985throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInTemplate, triggerBase.GetType().Name));
1002throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInTemplate, triggerBase.GetType().Name));
1090throw new InvalidOperationException(SR.Format(SR.EventTriggerTargetNameUnresolvable, eventTrigger.SourceName));
1599throw new InvalidOperationException(SR.Format(SR.CrossThreadAccessOfUnshareableFreezable, freezable.GetType().FullName));
2082throw new InvalidOperationException(
2337throw new InvalidOperationException(SR.Format(SR.MustBeFrameworkDerived, d.GetType()));
4089throw new InvalidOperationException(SR.ChildTemplateInstanceDoesNotExist);
5326throw new InvalidOperationException(SR.StyleHasTooManyElements);
PresentationUI (23)
ReachFramework (24)
Replay (4)
Roslyn.Test.PdbUtilities (1)
Roslyn.Test.Performance.Utilities (1)
Roslyn.VisualStudio.Next.UnitTests (1)
RoutingSandbox (1)
RoutingWebSite (1)
RunTests (4)
SemanticSearch.BuildTask (2)
ServerComparison.TestSites (1)
Shared (11)
SignalR.Client.FunctionalTestApp (2)
SimpleWebSiteWithWebApplicationBuilderException (1)
SocialSample (1)
Sockets.BindTests (3)
Sockets.FunctionalTests (3)
StaticFilesAuth (2)
Swaggatherer (1)
System.CodeDom (13)
System.Collections (43)
System.Collections.Concurrent (15)
System.Collections.Immutable (37)
System.Collections.NonGeneric (21)
System.Collections.Specialized (13)
System.ComponentModel.Annotations (30)
System.ComponentModel.Composition (21)
System.ComponentModel.EventBasedAsync (5)
System.ComponentModel.TypeConverter (62)
System\ComponentModel\TypeDescriptor.cs (49)
3446if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3448if (attrs == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes"));
3469if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3491if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3512if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3514if (converter == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3534if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3536if (converter == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3557if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3577if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3599if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3619if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3621if (events == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
3640if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptorFromRegisteredType"));
3642if (events == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEventsFromRegisteredType"));
3667if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3669if (evts == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
3689if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3691if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3710if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3712if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3737if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3739if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3761if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3809throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3812throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes"));
3836throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3861throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3887throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3890throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3914throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3917throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverterFromRegisteredType"));
3942throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3968throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3996throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4021throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4024throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
4048throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptorFromRegisteredType"));
4051throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEventsFromRegisteredType"));
4076throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4079throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
4104throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4108throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
4132throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4137throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetPropertiesFromRegisteredType"));
4162throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4165throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
4189throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4213throw 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 (2)
System.Diagnostics.DiagnosticSource (17)
System.Diagnostics.Process (36)
System.Drawing.Common.Tests (4)
System.Formats.Asn1 (15)
System.Formats.Cbor (40)
System.Formats.Nrbf (23)
System.Formats.Tar (9)
System.IO.Compression (10)
System.IO.Compression.Brotli (10)
System.IO.IsolatedStorage (10)
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 (52)
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 (38)
System.Linq.Queryable (3)
System.Memory (3)
System.Net.Http (24)
System.Net.Http.Json (1)
System.Net.HttpListener (21)
System.Net.Mail (38)
System.Net.NameResolution (1)
System.Net.NetworkInformation (8)
System.Net.Ping (1)
System.Net.Primitives (5)
System.Net.Quic (9)
System.Net.Requests (46)
System.Net.Security (41)
System\Net\NegotiateAuthenticationPal.Unsupported.cs (6)
26public override IIdentity RemoteIdentity => throw new InvalidOperationException();
52public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) => throw new InvalidOperationException();
53public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) => throw new InvalidOperationException();
54public override NegotiateAuthenticationStatusCode UnwrapInPlace(Span<byte> input, out int unwrappedOffset, out int unwrappedLength, out bool wasEncrypted) => throw new InvalidOperationException();
55public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) => throw new InvalidOperationException();
56public override bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) => throw new InvalidOperationException();
System.Net.ServerSentEvents (1)
System.Net.Sockets (43)
System.Net.WebHeaderCollection (10)
System.Net.WebSockets (2)
System.Net.WebSockets.Client (3)
System.ObjectModel (1)
System.Private.CoreLib (298)
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (76)
System\Xml\XmlBaseWriter.cs (35)
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);
1630throw new InvalidOperationException();
1632throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "StartFragment", WriteState.ToString()));
1682throw new InvalidOperationException();
1684throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "EndFragment", WriteState.ToString()));
1719throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteFragment", WriteState.ToString()));
1722throw new InvalidOperationException();
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 (14)
System.Private.Windows.Core.TestUtilities (16)
System.Private.Windows.GdiPlus (6)
System.Private.Xml (563)
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 (12)
76throw new InvalidOperationException(ex.Message, ex);
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));
629throw new InvalidOperationException(SR.XmlNoPartialTrust, e);
648throw new InvalidOperationException(SR.Format(SR.XmlNotSerializable, mapping.Accessor.Name));
656throw new InvalidOperationException(SR.XmlNoPartialTrust, e);
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));
1083throw new InvalidOperationException(SR.Format(SR.XmlCircularDerivation, TypeDesc!.FullName));
1208throw new InvalidOperationException(SR.Format(SR.XmlSerializableSchemaError, nameof(IXmlSerializable), args.Message));
1241throw new InvalidOperationException(SR.Format(SR.XmlSerializableRootDupName, _getSchemaMethod!.DeclaringType!.FullName, e.Name, elementNs));
1294throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaEmptyTypeName, _type!.FullName, _getSchemaMethod.Name));
1299throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, _type!.Name, _getSchemaMethod.Name, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName));
1323throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, _xsiType.Namespace));
1327throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaInclude, _xsiType.Namespace, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name));
1332throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, _xsiType.Namespace));
1337throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaTypeMissing, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name, _xsiType.Name, _xsiType.Namespace));
1350if (string.IsNullOrEmpty(_schema.Id)) throw new InvalidOperationException(SR.Format(SR.XmlSerializableNameMissing1, _type!.FullName));
System\Xml\Serialization\SoapReflectionImporter.cs (21)
139return new InvalidOperationException(SR.Format(SR.XmlReflectionError, context), e);
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));
1076throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, propertyInfo.DeclaringType, propertyInfo.Name));
1298throw new InvalidOperationException(SR.Format(SR.XmlNoAddMethod, type.FullName, currentType, "IEnumerable"));
1349throw new InvalidOperationException(SR.Format(SR.XmlNoDefaultAccessors, type.FullName));
1354throw new InvalidOperationException(SR.Format(SR.XmlNoAddMethod, type.FullName, indexer.PropertyType, "ICollection"));
1384throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeSyntax, type));
System\Xml\Serialization\XmlReflectionImporter.cs (97)
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!)));
376return new InvalidOperationException(SR.Format(SR.XmlReflectionError, context), e);
381return new InvalidOperationException(SR.Format(SR.XmlTypeReflectionError, context), e);
386return new InvalidOperationException(SR.Format(model.IsProperty ? SR.XmlPropertyReflectionError : SR.XmlFieldReflectionError, model.Name), e);
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"));
874throw new InvalidOperationException(SR.Format(SR.XmlIllegalTypedTextAttribute, typeName, member.Text.Name, member.Text.Mapping.TypeDesc.FullName));
877throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, model.Type.FullName));
884throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName));
915throw new InvalidOperationException(SR.Format(SR.XmlSequenceUnique, member.SequenceId.ToString(CultureInfo.InvariantCulture), "Order", member.Name));
921throw new InvalidOperationException(SR.Format(SR.XmlSequenceInconsistent, "Order", member.Name));
931throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName));
1172throw new InvalidOperationException(SR.Format(SR.XmlUdeclaredXsdType, dataType));
1207throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttributeFlagsArray, model.TypeDesc.FullName));
1222throw new InvalidOperationException(SR.Format(SR.XmlNoSerializableMembers, model.TypeDesc.FullName));
1235throw new InvalidOperationException(SR.XmlInvalidConstantAttribute);
1268throw new InvalidOperationException(SR.XmlRpcLitAttributeAttributes);
1272throw new InvalidOperationException(SR.Format(SR.XmlInvalidAttributeType, "XmlAttribute"));
1278if (i > 0) throw new InvalidOperationException(SR.XmlInvalidReturnPosition);
1294throw new InvalidOperationException(SR.XmlIllegalMultipleTextMembers);
1302throw new InvalidOperationException(SR.XmlMultipleXmlnsMembers);
1317throw new InvalidOperationException(SR.Format(SR.XmlSequenceMembers, "Order"));
1434throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierType, identifierName, memberName, type.GetElementType()!.FullName));
1441throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierArrayType, identifierName, memberName, type.FullName));
1447throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierTypeEnum, identifierName));
1462throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1479throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1486throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierAmbiguous, choice.MemberName));
1493throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1576throw new InvalidOperationException(SR.XmlIllegalAttributesArrayAttribute);
1582throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName, nameof(IXmlSerializable)));
1586throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName));
1623throw new InvalidOperationException(SR.XmlIllegalElementsArrayAttribute);
1633throw new InvalidOperationException(SR.Format(SR.XmlIllegalArrayTextAttribute, accessorName));
1661throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1674throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1686throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, arrayElementType.FullName));
1697throw new InvalidOperationException(SR.Format(SR.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace ?? "null"));
1724throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1734throw new InvalidOperationException(SR.XmlIllegalArrayArrayAttribute);
1768throw new InvalidOperationException(SR.XmlIllegalAttribute);
1772if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, accessor.TypeDesc.FullName));
1776if (a.XmlElements.Count > 0) throw new InvalidOperationException(SR.XmlIllegalAttribute);
1777if (a.XmlAttribute.Type != null) throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlAttribute"));
1803throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlText"));
1820throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlElement"));
1834throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1847throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1858throw new InvalidOperationException(SR.XmlSoleXmlnsAttribute);
1862throw new InvalidOperationException(SR.Format(SR.XmlXmlnsInvalidType, accessorName, accessorType.FullName, typeof(System.Xml.Serialization.XmlSerializerNamespaces).FullName));
1873throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.FullName, nameof(IXmlSerializable)));
1877throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc));
1902throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1915throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1927throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, accessorType.FullName));
1939throw new InvalidOperationException(SR.Format(SR.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace ?? "null"));
1964throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1978throw new InvalidOperationException(SR.Format(SR.XmlRpcLitArrayElement, accessor.Elements[0].Name));
1981throw new InvalidOperationException(SR.Format(SR.XmlRpcLitXmlns, accessor.Name));
2027throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, accessor.ChoiceIdentifier.Mapping!.TypeDesc!.FullName));
2033throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping!.TypeDesc!.FullName, id, element.Name, element.Namespace));
2049throw new InvalidOperationException(SR.XmlRpcLitAttributeAttributes);
2052throw new InvalidOperationException(SR.XmlRpcLitAttributes);
2058throw new InvalidOperationException(SR.XmlRpcLitElements);
2063throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", xmlElement.Namespace));
2067throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNullable, "IsNullable", "true"));
2072throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", a.XmlArray.Namespace));
2089throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2100throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2115throw new InvalidOperationException(SR.Format(SR.XmlArrayItemAmbiguousTypes, accessorName, item.ElementName, items[i]!.ElementName, nameof(XmlElementAttribute), nameof(XmlChoiceIdentifierAttribute), accessorName));
2138throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdDuplicate, choiceMapping.TypeName, choiceId));
2159throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, strValue, a.XmlDefaultValue.GetType().FullName));
2192throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementName, existing.Name, existing.Namespace));
2198throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Bad accessor type " + accessor.GetType().FullName));
2200throw new InvalidOperationException(SR.Format(SR.XmlDuplicateAttributeName, existing.Name, existing.Namespace));
2226if (isQualified && form == XmlSchemaForm.Unqualified) throw new InvalidOperationException(SR.XmlInvalidFormUnqualified);
2233if (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\XmlSchemas.cs (7)
49throw new InvalidOperationException(SR.Format(SR.XmlSchemaDuplicateNamespace, ns));
173if (_isCompiled) throw new InvalidOperationException(SR.XmlSchemaCompiled);
262throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "XmlSchemas.Find: Invalid object type " + type.FullName));
395throw new InvalidOperationException(SR.Format(SR.XmlSchemaIncludeLocation, this.GetType().Name, external.SchemaLocation));
417throw new InvalidOperationException(MergeFailedMessage(o, dest, schema.TargetNamespace));
696throw new InvalidOperationException(GetSchemaItem(source, null, message), exception);
712throw new InvalidOperationException(SR.Format(SR.XmlSchemaSyntaxErrorDetails, ns, message, exception.LineNumber, exception.LinePosition), exception);
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\Xml\Serialization\XmlSerializer.cs (9)
393throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncodingNotEncoded1, encodingStyle));
417throw new InvalidOperationException(SR.XmlGenError, e);
494throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncodingNotEncoded1, encodingStyle));
520throw new InvalidOperationException(SR.Format(SR.XmlSerializeErrorDetails, lineInfo.LineNumber.ToString(CultureInfo.InvariantCulture), lineInfo.LinePosition.ToString(CultureInfo.InvariantCulture)), e);
524throw new InvalidOperationException(SR.XmlSerializeError, e);
676throw new InvalidOperationException(SR.XmlMelformMapping);
685throw new InvalidOperationException(SR.Format(SR.XmlPregenTypeDynamic, type.FullName));
932throw new InvalidOperationException(SR.Format(SR.XmlUnxpectedType, _primitiveType!.FullName));
1014throw new InvalidOperationException(SR.Format(SR.XmlUnxpectedType, _primitiveType!.FullName));
System.Private.Xml.Linq (56)
System.Reflection.Context (12)
System.Reflection.Emit (34)
System.Reflection.Metadata (24)
System.Reflection.MetadataLoadContext (112)
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 (58)
System.Security.Cryptography.Cose (29)
System.Security.Cryptography.Pkcs (41)
System.ServiceModel.Federation (14)
System.ServiceModel.NetFramingBase (17)
System.ServiceModel.Primitives.Tests (9)
System.ServiceModel.Syndication (11)
System.ServiceModel.UnixDomainSocket (1)
System.Text.Encoding.CodePages (1)
System.Text.Json (103)
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));
329throw new InvalidOperationException(SR.Format(SR.NamingPolicyReturnNull, namingPolicy));
335throw new InvalidOperationException(SR.Format(SR.SerializerConverterFactoryReturnsNull, converterType));
341throw new InvalidOperationException(SR.Format(SR.SerializerConverterFactoryReturnsJsonConverterFactory, converterType));
351throw new InvalidOperationException(
363throw new InvalidOperationException(SR.Format(SR.ConstructorParamIncompleteBinding, parentType));
369throw new InvalidOperationException(SR.Format(SR.ExtensionDataCannotBindToCtorParam, propertyName, jsonPropertyInfo.DeclaringType));
375throw new InvalidOperationException(SR.Format(SR.JsonIncludeOnInaccessibleProperty, memberName, declaringType));
381throw new InvalidOperationException(SR.Format(SR.IgnoreConditionOnValueTypeInvalid, clrPropertyName, propertyDeclaringType));
388throw new InvalidOperationException(SR.Format(SR.NumberHandlingOnPropertyInvalid, jsonPropertyInfo.MemberName, jsonPropertyInfo.DeclaringType));
394throw new InvalidOperationException(SR.Format(SR.ConverterCanConvertMultipleTypes, jsonConverter.GetType(), jsonConverter.Type, runtimePropertyType));
414throw new InvalidOperationException(SR.Format(SR.InvalidJsonTypeInfoOperationForKind, kind));
420throw new InvalidOperationException(SR.Format(SR.OnDeserializingCallbacksNotSupported, type));
426throw new InvalidOperationException(SR.Format(SR.CreateObjectConverterNotCompatible, type));
527throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateAttribute, attribute, location));
533throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateTypeAttribute, classType, attribute));
539throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateTypeAttribute, classType, typeof(TAttribute)));
545throw new InvalidOperationException(SR.Format(SR.ExtensionDataConflictsWithUnmappedMemberHandling, classType, jsonPropertyInfo.MemberName));
551throw new InvalidOperationException(SR.Format(SR.SerializationDataExtensionPropertyInvalid, jsonPropertyInfo.PropertyType, jsonPropertyInfo.MemberName));
557throw new InvalidOperationException(SR.Format(SR.PropertyTypeNotNullable, jsonPropertyInfo.PropertyType));
563throw new InvalidOperationException(SR.NodeJsonObjectCustomConverterNotAllowedOnExtensionProperty);
784throw new InvalidOperationException(SR.Format(SR.MetadataReferenceOfTypeCannotBeAssignedToType, referenceId, currentType, typeToConvert));
791throw new InvalidOperationException(SR.Format(SR.JsonPropertyInfoBoundToDifferentParent, propertyInfo.Name, propertyInfo.DeclaringTypeInfo.Type.FullName));
832throw new InvalidOperationException(SR.Format(SR.NoMetadataForType, type, resolver?.ToString() ?? "<null>"));
837return new InvalidOperationException(SR.Format(SR.NoMetadataForTypeProperties, resolver?.ToString() ?? "<null>", type));
879throw new InvalidOperationException(SR.Format(SR.Polymorphism_TypeDoesNotSupportPolymorphism, baseType));
885throw new InvalidOperationException(SR.Format(SR.Polymorphism_DerivedTypeIsNotSupported, derivedType, baseType));
891throw new InvalidOperationException(SR.Format(SR.Polymorphism_DerivedTypeIsAlreadySpecified, baseType, derivedType));
897throw new InvalidOperationException(SR.Format(SR.Polymorphism_TypeDicriminatorIdIsAlreadySpecified, baseType, typeDiscriminator));
903throw new InvalidOperationException(SR.Polymorphism_InvalidCustomTypeDiscriminatorPropertyName);
909throw new InvalidOperationException(SR.Format(SR.Polymorphism_PropertyConflictsWithMetadataPropertyName, type, propertyName));
915throw new InvalidOperationException(SR.Format(SR.Polymorphism_ConfigurationDoesNotSpecifyDerivedTypes, baseType));
921throw new InvalidOperationException(SR.Format(SR.UnsupportedEnumIdentifier, enumType.Name, enumName));
945throw new InvalidOperationException(SR.Format(SR.PipeWriter_DoesNotImplementUnflushedBytes, pipeWriter.GetType().Name));
957throw new InvalidOperationException(SR.JsonSchemaExporter_DepthTooLarge);
System.Text.Json.SourceGeneration (3)
System.Text.RegularExpressions (5)
System.Text.RegularExpressions.Generator (1)
System.Threading (16)
System.Threading.Channels (3)
System.Threading.Tasks.Dataflow (11)
System.Threading.Tasks.Parallel (13)
System.Transactions.Local (19)
System.Windows.Controls.Ribbon (39)
System.Windows.Forms (596)
System.Windows.Forms.Design (83)
System.Windows.Forms.Design.Tests (28)
System.Windows.Forms.IntegrationTests.Common (1)
System.Windows.Forms.Primitives (5)
System.Windows.Forms.Primitives.TestUtilities (2)
System.Windows.Forms.Tests (13)
System.Windows.Forms.UI.IntegrationTests (8)
System.Windows.Input.Manipulations (4)
System.Xaml (52)
System\Xaml\XamlXmlWriter.cs (11)
400throw new InvalidOperationException(SR.Format(SR.PrefixNotInFrames, prefix));
1048throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember"));
1055throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember"));
1099throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteEndObject"));
1260throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteValue"));
1297throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, value, containingXamlType.Name));
1396throw new InvalidOperationException(SR.XamlXmlWriterWriteObjectNotSupportedInCurrentState);
1408throw new InvalidOperationException(SR.XamlXmlWriterIsObjectFromMemberSetForArraysOrNonCollections);
1503throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, writer.deferredValue, containingXamlType.Name));
2059throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, operation));
2084throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteGetObject"));
Templates.Blazor.Tests (21)
Templates.Blazor.WebAssembly.Auth.Tests (27)
Templates.Blazor.WebAssembly.Tests (27)
Templates.Mvc.Tests (27)
Templates.Tests (27)
TestingAppHost1.AppHost (4)
UIAutomationClient (41)
UIAutomationClientSideProviders (104)
UIAutomationTypes (1)
vbc (5)
VBCSCompiler (8)
VBCSCompiler.UnitTests (4)
VersioningWebSite (1)
VisualBasicRuntimeTest (7)
Wasm.Performance.ConsoleHost (1)
WindowsFormsIntegration (3)
WinFormsControlsTest (4)
XmlFormattersWebSite (1)
xunit.assert (7)
xunit.console (3)
5352 references to InvalidOperationException
Aspire.Azure.AI.OpenAI.Tests (9)
Aspire.Azure.Data.Tables (2)
Aspire.Azure.Messaging.EventHubs (10)
Aspire.Azure.Messaging.ServiceBus (2)
Aspire.Azure.Messaging.WebPubSub (2)
Aspire.Azure.Messaging.WebPubSub.Tests (2)
Aspire.Azure.Security.KeyVault (2)
Aspire.Azure.Storage.Blobs (2)
Aspire.Azure.Storage.Queues (2)
Aspire.Components.Common.Tests (2)
Aspire.Confluent.Kafka (4)
Aspire.Dashboard (4)
Aspire.Dashboard.Tests (2)
Aspire.Elastic.Clients.Elasticsearch (2)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (13)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.Tests (2)
Aspire.Hosting.Containers.Tests (9)
Aspire.Hosting.Keycloak.Tests (1)
Aspire.Hosting.Orleans (2)
Aspire.Hosting.Testing (2)
Aspire.Hosting.Testing.Tests (13)
Aspire.Hosting.Tests (19)
Aspire.Keycloak.Authentication.Tests (8)
Aspire.Microsoft.Azure.Cosmos (2)
Aspire.Microsoft.Data.SqlClient (2)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (2)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (2)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (8)
Aspire.Milvus.Client (2)
Aspire.MongoDB.Driver (2)
Aspire.MySqlConnector (2)
Aspire.NATS.Net (2)
Aspire.Npgsql (2)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (2)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (8)
Aspire.OpenAI.Tests (10)
Aspire.Oracle.EntityFrameworkCore (2)
Aspire.Oracle.EntityFrameworkCore.Tests (8)
Aspire.Pomelo.EntityFrameworkCore.MySql (2)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (8)
Aspire.Qdrant.Client (2)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v7.Tests (1)
Aspire.Workload.Tests (1)
Binding.Http.IntegrationTests (1)
Client.ClientBase.IntegrationTests (5)
CodeStyleConfigFileGenerator (3)
CSharpSyntaxGenerator (1)
Diagnostics.EFCore.FunctionalTests (4)
dotnet-svcutil-lib (18)
IIS.Tests (4)
InMemory.FunctionalTests (131)
Http2\Http2StreamTests.cs (28)
1508InvalidOperationException ex = null;
1519ex = Assert.Throws<InvalidOperationException>(() => context.Response.OnStarting(_ => Task.CompletedTask, null));
2144Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("Custom你好Name", "Custom Value"));
2145Assert.Throws<InvalidOperationException>(() => context.Response.ContentType = "Custom 你好 Type");
2146Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("CustomName", "Custom 你好 Value"));
2147Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("CustomName", "Custom \r Value"));
2185Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("Custom你好Name", "Custom Value"));
2186Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("CustomName", "Custom \r Value"));
2469Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("Custom你好Name", "Custom Value"));
2470Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("CustomName", "Custom 你好 Value"));
2471Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("CustomName", "Custom \r Value"));
2473Assert.Throws<InvalidOperationException>(() => context.Features.Get<IHttpResponseTrailersFeature>().Trailers.ETag = "Custom 你好 Tag");
2474Assert.Throws<InvalidOperationException>(() => context.Features.Get<IHttpResponseTrailersFeature>().Trailers.Accept = "Custom 你好 Tag");
2512Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("Custom你好Name", "Custom Value"));
2513Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("CustomName", "Custom \r Value"));
4661InvalidOperationException writeEx = null;
4671writeEx = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.WriteAsync(""));
4867var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.CompleteAsync().DefaultTimeout());
4990var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.WriteAsync("2 Hello World").DefaultTimeout());
5049var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.WriteAsync("2 Hello World").DefaultTimeout());
5109catch (InvalidOperationException)
5315var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.CompleteAsync().DefaultTimeout());
5386var ex = Assert.Throws<InvalidOperationException>(() => context.Response.BodyWriter.Complete());
Http3\Http3StreamTests.cs (26)
862Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("Custom你好Name", "Custom Value"));
863Assert.Throws<InvalidOperationException>(() => context.Response.ContentType = "Custom 你好 Type");
864Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("CustomName", "Custom 你好 Value"));
865Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("CustomName", "Custom \r Value"));
896Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("Custom你好Name", "Custom Value"));
897Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("CustomName", "Custom \r Value"));
1013Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("Custom你好Name", "Custom Value"));
1014Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("CustomName", "Custom 你好 Value"));
1015Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("CustomName", "Custom \r Value"));
1017Assert.Throws<InvalidOperationException>(() => context.Features.Get<IHttpResponseTrailersFeature>().Trailers.ETag = "Custom 你好 Tag");
1018Assert.Throws<InvalidOperationException>(() => context.Features.Get<IHttpResponseTrailersFeature>().Trailers.Accept = "Custom 你好 Tag");
1044Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("Custom你好Name", "Custom Value"));
1045Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("CustomName", "Custom \r Value"));
1242var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.CompleteAsync().DefaultTimeout());
1345var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.WriteAsync("2 Hello World").DefaultTimeout());
1397var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.WriteAsync("2 Hello World").DefaultTimeout());
1443catch (InvalidOperationException)
1604var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.CompleteAsync().DefaultTimeout());
1662var ex = Assert.Throws<InvalidOperationException>(() => context.Response.BodyWriter.Complete());
2078var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => readTrailersTcs.Task).DefaultTimeout();
InProcessWebSite (4)
Interop.FunctionalTests (2)
InteropClient (1)
Microsoft.Analyzers.Local (2)
Microsoft.Analyzers.Local.Tests (8)
Microsoft.AspNetCore.Antiforgery.Test (12)
Microsoft.AspNetCore.AsyncState (2)
Microsoft.AspNetCore.AsyncState.Tests (2)
Microsoft.AspNetCore.Authentication.Core.Test (20)
Microsoft.AspNetCore.Authentication.Negotiate.Test (9)
Microsoft.AspNetCore.Authentication.Test (68)
AuthenticationMetricsTest.cs (10)
114var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => authenticationService.AuthenticateAsync(httpContext, scheme: "custom"));
166var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => authenticationService.ChallengeAsync(httpContext, scheme: "custom", properties: null));
217var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => authenticationService.ForbidAsync(httpContext, scheme: "custom", properties: null));
268var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => authenticationService.SignInAsync(httpContext, scheme: "custom", new ClaimsPrincipal(), properties: null));
319var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => authenticationService.SignOutAsync(httpContext, scheme: "custom", properties: null));
Microsoft.AspNetCore.Authorization.Test (9)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Authorization.Tests (4)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (20)
Microsoft.AspNetCore.Components.Server.Tests (14)
Microsoft.AspNetCore.Components.Tests (163)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Components.Web.Tests (34)
Microsoft.AspNetCore.Components.WebAssembly.Tests (4)
Microsoft.AspNetCore.Components.WebView.Test (2)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Cors.Test (2)
Microsoft.AspNetCore.DataProtection (6)
Microsoft.AspNetCore.DataProtection.Abstractions (1)
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (2)
Microsoft.AspNetCore.DataProtection.Tests (11)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (8)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Microsoft.AspNetCore.Diagnostics.Tests (12)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (14)
Microsoft.AspNetCore.HeaderParsing (2)
Microsoft.AspNetCore.HeaderParsing.Tests (1)
Microsoft.AspNetCore.HeaderPropagation.Tests (5)
Microsoft.AspNetCore.HostFiltering.Tests (1)
Microsoft.AspNetCore.Hosting.Tests (42)
StartupManagerTests.cs (14)
79var exception = Assert.Throws<InvalidOperationException>(() => startup.ConfigureServicesDelegate(serviceCollection));
367var ex = Assert.Throws<InvalidOperationException>(() => StartupLoader.LoadMethods(services, type, "Boom"));
416var ex = Assert.Throws<InvalidOperationException>(() => StartupLoader.LoadMethods(services, type, "TwoConfigures"));
431var ex = Assert.Throws<InvalidOperationException>(() => StartupLoader.LoadMethods(services, type, "PrivateConfigure"));
445var ex = Assert.Throws<InvalidOperationException>(() => StartupLoader.LoadMethods(services, type, "TwoConfigureServices"));
514Assert.Throws<InvalidOperationException>(() => startup.ConfigureDelegate(app));
602Assert.Throws<InvalidOperationException>(() => startup.ConfigureServicesDelegate(serviceCollection));
611Assert.Throws<InvalidOperationException>(() => StartupLoader.LoadMethods(services, typeof(MyContainerStartupBaseClass), Environments.Development));
621Assert.Throws<InvalidOperationException>(() => StartupLoader.LoadMethods(services, typeof(MyContainerStartupWithOverloads), Environments.Development));
Microsoft.AspNetCore.Http.Abstractions (4)
Microsoft.AspNetCore.Http.Abstractions.Tests (31)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Tests (6)
Microsoft.AspNetCore.Http.Extensions.Tests (79)
Microsoft.AspNetCore.Http.Features (3)
Microsoft.AspNetCore.Http.Results.Tests (21)
Microsoft.AspNetCore.Http.Tests (13)
Microsoft.AspNetCore.HttpLogging (3)
Microsoft.AspNetCore.HttpLogging.Tests (6)
Microsoft.AspNetCore.HttpsPolicy.Tests (2)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (10)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Identity.Test (20)
Microsoft.AspNetCore.JsonPatch.Tests (2)
Microsoft.AspNetCore.Mvc.Abstractions.Test (14)
Microsoft.AspNetCore.Mvc.Core (6)
Microsoft.AspNetCore.Mvc.Core.Test (145)
Microsoft.AspNetCore.Mvc.Core.TestCommon (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (10)
Microsoft.AspNetCore.Mvc.IntegrationTests (42)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (12)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
Microsoft.AspNetCore.Mvc.Razor.Test (52)
Microsoft.AspNetCore.Mvc.RazorPages.Test (26)
Microsoft.AspNetCore.Mvc.TagHelpers (3)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (41)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (115)
Microsoft.AspNetCore.OpenApi.Tests (8)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.RateLimiting.Tests (3)
Microsoft.AspNetCore.Razor.Runtime.Test (2)
Microsoft.AspNetCore.RequestDecompression.Tests (4)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
Microsoft.AspNetCore.Routing (3)
Microsoft.AspNetCore.Routing.FunctionalTests (15)
Microsoft.AspNetCore.Routing.Tests (77)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (25)
Microsoft.AspNetCore.Server.Kestrel.Core (13)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (102)
Microsoft.AspNetCore.Server.Kestrel.Tests (18)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (4)
Microsoft.AspNetCore.Session (2)
Microsoft.AspNetCore.Session.Tests (1)
Microsoft.AspNetCore.Shared.Tests (9)
Microsoft.AspNetCore.SignalR.Client.Tests (43)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (46)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (2)
Microsoft.AspNetCore.TestHost.Tests (17)
Microsoft.AspNetCore.Testing (2)
Microsoft.AspNetCore.Testing.Tests (5)
Microsoft.AspNetCore.Tests (16)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.AspNetCore.WebUtilities.Tests (1)
Microsoft.Build (52)
Microsoft.Build.Engine.OM.UnitTests (104)
Microsoft.Build.Engine.UnitTests (25)
Microsoft.Build.Framework.UnitTests (1)
Microsoft.Build.Tasks.Core (9)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.UnitTests.Shared (1)
Microsoft.Build.Utilities.Core (7)
Microsoft.Build.Utilities.UnitTests (9)
Microsoft.CodeAnalysis (44)
Microsoft.CodeAnalysis.CodeStyle (6)
Microsoft.CodeAnalysis.CSharp (14)
Compilation\CSharpSemanticModel.cs (10)
2507/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2534/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2563/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2589/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2616/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2643/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2673/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2702/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2732/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2758/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (53)
SourceGeneration\GeneratorDriverTests.cs (24)
279var exception = new InvalidOperationException("init error");
287VerifyGeneratorExceptionDiagnostic<InvalidOperationException>(generatorDiagnostics.Single(), nameof(CallbackGenerator), "init error", initialization: true);
302var exception = new InvalidOperationException("init error");
323var exception = new InvalidOperationException("generate error");
331VerifyGeneratorExceptionDiagnostic<InvalidOperationException>(generatorDiagnostics.Single(), nameof(CallbackGenerator), "generate error");
346var exception = new InvalidOperationException("generate error");
357VerifyGeneratorExceptionDiagnostic<InvalidOperationException>(generatorDiagnostics.Single(), nameof(CallbackGenerator), "generate error");
380var exception = new InvalidOperationException("generate error");
392VerifyGeneratorExceptionDiagnostic<InvalidOperationException>(generatorDiagnostics.Single(), nameof(CallbackGenerator), "generate error");
407var exception = new InvalidOperationException("generate error");
1014VerifyGeneratorExceptionDiagnostic<InvalidOperationException>(generatorDiagnostics.Single(), nameof(CallbackGenerator), "post init error", initialization: true);
1049VerifyGeneratorExceptionDiagnostic<InvalidOperationException>(generatorDiagnostics.Single(), nameof(CallbackGenerator), "init error", initialization: true);
1447var e = new InvalidOperationException("abc");
1472var e = new InvalidOperationException("abc");
1498var e = new InvalidOperationException("abc");
1523VerifyGeneratorExceptionDiagnostic<InvalidOperationException>(runResults.Diagnostics.Single(), nameof(PipelineCallbackGenerator), "abc");
1540var e = new InvalidOperationException("abc");
1562VerifyGeneratorExceptionDiagnostic<InvalidOperationException>(runResults.Diagnostics.Single(), nameof(PipelineCallbackGenerator), "abc");
1588var e = new InvalidOperationException("abc");
1617var e = new InvalidOperationException("abc");
1700Assert.Throws<InvalidOperationException>(() => throwsFunc(20, CancellationToken.None));
1709Assert.IsType<InvalidOperationException>(e.InnerException);
4766var exception = Assert.IsType<InvalidOperationException>(result.Exception);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
Syntax\SyntaxNodeTests.cs (8)
2156Assert.Throws<InvalidOperationException>(() => ifstatement.ReplaceNode(then, new[] { stat1, stat2 }));
2159Assert.Throws<InvalidOperationException>(() => ifstatement.ReplaceNode(then, new StatementSyntax[] { }));
2196Assert.Throws<InvalidOperationException>(() => ifstatement.InsertNodesBefore(then, new[] { stat1, stat2 }));
2199Assert.Throws<InvalidOperationException>(() => ifstatement.InsertNodesAfter(then, new StatementSyntax[] { }));
2297Assert.Throws<InvalidOperationException>(() => cu.ReplaceToken(identifierC, new[] { identifierA, identifierB }));
2300Assert.Throws<InvalidOperationException>(() => cu.ReplaceToken(identifierC, new SyntaxToken[] { }));
2328Assert.Throws<InvalidOperationException>(() => cu.InsertTokensBefore(identifierC, new[] { identifierA, identifierB }));
2331Assert.Throws<InvalidOperationException>(() => cu.InsertTokensAfter(identifierC, new[] { identifierA, identifierB }));
Microsoft.CodeAnalysis.Debugging.Package (5)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Microsoft.CodeAnalysis.Features (8)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Test.Utilities (3)
Microsoft.CodeAnalysis.UnitTests (74)
Collections\ImmutableArrayExtensionsTests.cs (11)
144Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single());
146Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>(1, 2).Single());
151Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single(isOdd));
153Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>(1, 2, 3).Single(isOdd));
160Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single((x, a) => x == a, 1));
162Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>(1, 1).Single((x, a) => x == a, 1));
165Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single((x, a) => x % a == 1, 2));
167Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>(1, 2, 3).Single((x, a) => x % a == 1, 2));
233Assert.Throws<InvalidOperationException>(() => roa.Last());
235Assert.Throws<InvalidOperationException>(() => roa.Last(i => i < 1));
257Assert.Throws<InvalidOperationException>(() => roa.SingleOrDefault());
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces (34)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (14)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (71)
SolutionTests\SolutionTests.cs (58)
119Assert.Throws<InvalidOperationException>(() => solution.RemoveDocument(s_unrelatedDocumentId));
128Assert.Throws<InvalidOperationException>(() => solution.RemoveDocuments(ImmutableArray.Create(s_unrelatedDocumentId)));
138Assert.Throws<InvalidOperationException>(() => solution.RemoveAdditionalDocument(s_unrelatedDocumentId));
147Assert.Throws<InvalidOperationException>(() => solution.RemoveAdditionalDocuments(ImmutableArray.Create(s_unrelatedDocumentId)));
157Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerConfigDocument(s_unrelatedDocumentId));
166Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerConfigDocuments(ImmutableArray.Create(s_unrelatedDocumentId)));
187Assert.Throws<InvalidOperationException>(() => solution.WithDocumentName(s_unrelatedDocumentId, name));
217Assert.Throws<InvalidOperationException>(() => solution.WithDocumentFolders(s_unrelatedDocumentId, folders));
245Assert.Throws<InvalidOperationException>(() => solution.WithDocumentFilePath(s_unrelatedDocumentId, path));
263Assert.Throws<InvalidOperationException>(() => solution.WithDocumentSourceCodeKind(s_unrelatedDocumentId, SourceCodeKind.Script));
322Assert.Throws<InvalidOperationException>(() => solution.WithDocumentSyntaxRoot(s_unrelatedDocumentId, root));
365Assert.Throws<InvalidOperationException>(() => solution.WithDocumentText(s_unrelatedDocumentId, text, PreservationMode.PreserveIdentity));
389Assert.Throws<InvalidOperationException>(() => solution.WithDocumentText(s_unrelatedDocumentId, textAndVersion, PreservationMode.PreserveIdentity));
933Assert.Throws<InvalidOperationException>(() => solution.WithAdditionalDocumentText(s_unrelatedDocumentId, text, PreservationMode.PreserveIdentity));
957Assert.Throws<InvalidOperationException>(() => solution.WithAdditionalDocumentText(s_unrelatedDocumentId, textAndVersion, PreservationMode.PreserveIdentity));
979Assert.Throws<InvalidOperationException>(() => solution.WithAnalyzerConfigDocumentText(s_unrelatedDocumentId, text, PreservationMode.PreserveIdentity));
1003Assert.Throws<InvalidOperationException>(() => solution.WithAnalyzerConfigDocumentText(s_unrelatedDocumentId, textAndVersion, PreservationMode.PreserveIdentity));
1025Assert.Throws<InvalidOperationException>(() => solution.WithDocumentTextLoader(s_unrelatedDocumentId, loader, PreservationMode.PreserveIdentity));
1047Assert.Throws<InvalidOperationException>(() => solution.WithAdditionalDocumentTextLoader(s_unrelatedDocumentId, loader, PreservationMode.PreserveIdentity));
1069Assert.Throws<InvalidOperationException>(() => solution.WithAnalyzerConfigDocumentTextLoader(s_unrelatedDocumentId, loader, PreservationMode.PreserveIdentity));
1451Assert.Throws<InvalidOperationException>(() => solution.WithProjectAssemblyName(ProjectId.CreateNewId(), "x.dll"));
1475Assert.Throws<InvalidOperationException>(() => solution.WithProjectOutputFilePath(ProjectId.CreateNewId(), "x.dll"));
1529Assert.Throws<InvalidOperationException>(() => solution.WithProjectOutputRefFilePath(ProjectId.CreateNewId(), "x.dll"));
1552Assert.Throws<InvalidOperationException>(() => solution.WithProjectCompilationOutputInfo(ProjectId.CreateNewId(), info));
1575Assert.Throws<InvalidOperationException>(() => solution.WithProjectDefaultNamespace(ProjectId.CreateNewId(), "x"));
1689Assert.Throws<InvalidOperationException>(() => solution.WithProjectName(ProjectId.CreateNewId(), "x"));
1712Assert.Throws<InvalidOperationException>(() => solution.WithProjectFilePath(ProjectId.CreateNewId(), "x"));
1728Assert.Throws<InvalidOperationException>(() => solution.WithProjectCompilationOptions(ProjectId.CreateNewId(), options));
1777Assert.Throws<InvalidOperationException>(() => solution.WithProjectParseOptions(ProjectId.CreateNewId(), options));
1935Assert.Throws<InvalidOperationException>(() => solution.WithProjectReferences(ProjectId.CreateNewId(), [projectRef]));
1938Assert.Throws<InvalidOperationException>(() => solution2.WithProjectReferences(projectId2, [new ProjectReference(projectId)]));
1939Assert.Throws<InvalidOperationException>(() => solution.WithProjectReferences(projectId, [new ProjectReference(projectId)]));
1993Assert.Throws<InvalidOperationException>(() => solution.AddProjectReferences(projectId3, [projectRef2]));
1996Assert.Throws<InvalidOperationException>(() => solution3.AddProjectReferences(projectId2, [projectRef3]));
1997Assert.Throws<InvalidOperationException>(() => solution3.AddProjectReferences(projectId, [new ProjectReference(projectId)]));
2032Assert.Throws<InvalidOperationException>(() => solution.RemoveProjectReference(ProjectId.CreateNewId(), projectRef2));
2063Assert.Throws<InvalidOperationException>(() => solution.AddProjectReferences(submissionId2, [new ProjectReference(submissionId3)]));
2064Assert.Throws<InvalidOperationException>(() => solution.WithProjectReferences(submissionId1, [new ProjectReference(submissionId2), new ProjectReference(submissionId3)]));
2067Assert.Throws<InvalidOperationException>(() => solution.AddProjectReferences(projectId0, [new ProjectReference(submissionId1)]));
2068Assert.Throws<InvalidOperationException>(() => solution.WithProjectReferences(projectId0, [new ProjectReference(submissionId1)]));
2086Assert.Throws<InvalidOperationException>(() => solution.WithProjectMetadataReferences(ProjectId.CreateNewId(), [metadataRef]));
2111Assert.Throws<InvalidOperationException>(() => solution3.AddMetadataReferences(projectId, [metadataRef1]));
2135Assert.Throws<InvalidOperationException>(() => solution.RemoveMetadataReference(projectId, new TestMetadataReference()));
2138Assert.Throws<InvalidOperationException>(() => solution.RemoveMetadataReference(ProjectId.CreateNewId(), metadataRef1));
2156Assert.Throws<InvalidOperationException>(() => solution.WithProjectAnalyzerReferences(ProjectId.CreateNewId(), [analyzerRef]));
2184Assert.Throws<InvalidOperationException>(() => solution3.AddAnalyzerReferences(projectId, [analyzerRef1]));
2208Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerReference(projectId, new TestAnalyzerReference()));
2211Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerReference(ProjectId.CreateNewId(), analyzerRef1));
2251Assert.Throws<InvalidOperationException>(() => solution3.AddAnalyzerReferences([analyzerRef1]));
2273Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerReference(new TestAnalyzerReference()));
2378Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", loader));
2409Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", "text"));
2437Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", sourceText));
2466Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", syntaxRoot: root));
2670Assert.ThrowsAny<InvalidOperationException>(() => solution.AddDocuments(ImmutableArray.Create(documentInfo1, documentInfo2)));
4681Assert.Throws<InvalidOperationException>(() => solution = solution.WithProjectDocumentsOrder(pid, ImmutableList.CreateRange([did5, did3, did2, did1])));
5162Assert.Throws<InvalidOperationException>(() => solution.AddProjects(projects));
5276Assert.Throws<InvalidOperationException>(() => solution.RemoveProjects(projectsToRemove));
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (4)
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.Internal.SymbolHelper (5)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.SignTool.Tests (1)
Microsoft.DotNet.XliffTasks (1)
Microsoft.DotNet.XUnitAssert.Tests (3)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.AI.AzureAIInference (2)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.Ollama (2)
Microsoft.Extensions.AI.Ollama.Tests (5)
Microsoft.Extensions.AI.OpenAI (4)
Microsoft.Extensions.AI.OpenAI.Tests (2)
Microsoft.Extensions.AI.Tests (11)
Microsoft.Extensions.AmbientMetadata.Application (2)
Microsoft.Extensions.AsyncState (6)
Microsoft.Extensions.AsyncState.Tests (4)
Microsoft.Extensions.Caching.Hybrid (2)
Microsoft.Extensions.Caching.SqlServer.Tests (2)
Microsoft.Extensions.Compliance.Abstractions (2)
Microsoft.Extensions.Compliance.Redaction (3)
Microsoft.Extensions.Compliance.Redaction.Tests (2)
Microsoft.Extensions.Compliance.Testing (5)
Microsoft.Extensions.Compliance.Testing.Tests (3)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Binder (2)
Microsoft.Extensions.Configuration.UserSecrets (6)
Microsoft.Extensions.DependencyInjection (1)
Microsoft.Extensions.DependencyInjection.Abstractions (8)
Microsoft.Extensions.DependencyInjection.AutoActivation (2)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (5)
Microsoft.Extensions.Diagnostics.Probes (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (29)
Microsoft.Extensions.Diagnostics.Testing (5)
Microsoft.Extensions.Diagnostics.Testing.Tests (4)
Microsoft.Extensions.Features (2)
Microsoft.Extensions.Features.Tests (3)
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
Microsoft.Extensions.FileProviders.Physical (1)
Microsoft.Extensions.Hosting.Testing (4)
Microsoft.Extensions.Hosting.Testing.Tests (4)
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Http.Diagnostics.Tests (3)
Microsoft.Extensions.Http.Polly.Tests (4)
Microsoft.Extensions.Http.Resilience (3)
Microsoft.Extensions.Http.Resilience.Tests (16)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.ML.Tests (4)
Microsoft.Extensions.ObjectPool.DependencyInjection (2)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (1)
Microsoft.Extensions.Options.Contextual (2)
Microsoft.Extensions.Resilience (2)
Microsoft.Extensions.ServiceDiscovery (1)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Extensions.ServiceDiscovery.Tests (8)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.Abstractions (2)
Microsoft.Extensions.Telemetry.Tests (5)
Microsoft.Extensions.TimeProvider.Testing (2)
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
Microsoft.Gen.Logging.Generated.Tests (5)
Microsoft.Interop.SourceGeneration (5)
Microsoft.JSInterop.Tests (6)
Microsoft.Maui (1)
Microsoft.Maui.Controls (10)
Microsoft.Maui.Controls.Xaml (2)
Microsoft.Maui.Essentials (12)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Core.Tests (2)
Microsoft.ML.Data (2)
Microsoft.ML.OnnxTransformerTest (3)
Microsoft.ML.Parquet (6)
Microsoft.ML.Sweeper (1)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.TestFramework (5)
Microsoft.ML.TestFrameworkCommon (2)
Microsoft.ML.Tests (30)
Microsoft.ML.Tokenizers (4)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.Net.Http.Headers.Tests (3)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualBasic.Tests (3)
Microsoft.VisualStudio.LanguageServices (6)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
MSBuild (3)
MSBuildTaskHost (3)
mscorlib (1)
netstandard (1)
PresentationCore (54)
PresentationCore.Tests (4)
PresentationFramework (127)
PresentationFramework-SystemCore (1)
PresentationUI (5)
RunTests (1)
SemanticSearch.BuildTask (2)
Shared (5)
Shared.Tests (17)
Data.Validation\LengthAttributeTests.cs (5)
343Assert.Throws<InvalidOperationException>(() => _ = Validator.TryValidateObject(options0, context, results, true));
348Assert.Throws<InvalidOperationException>(() => _ = Validator.TryValidateObject(options1, context, results, true));
353Assert.Throws<InvalidOperationException>(() => _ = Validator.TryValidateObject(options2, context, results, true));
358Assert.Throws<InvalidOperationException>(() => _ = Validator.TryValidateObject(options3, context, results, true));
363Assert.Throws<InvalidOperationException>(() => _ = Validator.TryValidateObject(options4, context, results, true));
Sockets.BindTests (4)
System.Collections (4)
System.Collections.Concurrent (37)
System.Collections.Immutable (50)
System.ComponentModel.Annotations (38)
System.ComponentModel.Composition (9)
System.Configuration.ConfigurationManager (1)
System.Data.Common (40)
System\Data\Common\AdapterUtil.Common.cs (28)
292internal static InvalidOperationException MissingSelectCommand(string method)
300private static InvalidOperationException DataMapping(string error)
306internal static InvalidOperationException ColumnSchemaExpression(string? srcColumn, string cacheColumn)
312internal static InvalidOperationException ColumnSchemaMismatch(string? srcColumn, Type srcType, DataColumn column)
318internal static InvalidOperationException ColumnSchemaMissing(string cacheColumn, string tableName, string? srcColumn)
328internal static InvalidOperationException MissingColumnMapping(string srcColumn)
334internal static InvalidOperationException MissingTableSchema(string cacheTable, string srcTable)
340internal static InvalidOperationException MissingTableMapping(string srcTable)
346internal static InvalidOperationException MissingTableMappingDestination(string dstTable)
435internal static InvalidOperationException UpdateConnectionRequired(StatementType statementType, bool isRowUpdatingCommand)
470internal static InvalidOperationException ConnectionRequired_Res(string method) =>
473internal static InvalidOperationException UpdateOpenConnectionRequired(StatementType statementType, bool isRowUpdatingCommand, ConnectionState state)
547internal static InvalidOperationException MissingDataReaderFieldType(int index)
551internal static InvalidOperationException OnlyOneTableForStartRecordOrMaxRecords()
562internal static InvalidOperationException UpdateRequiresSourceTable(string defaultSrcTableName)
566internal static InvalidOperationException UpdateRequiresSourceTableName(string srcTable)
603internal static InvalidOperationException UpdateRequiresCommand(StatementType statementType, bool isRowUpdatingCommand)
649internal static InvalidOperationException ResultsNotAllowedDuringBatch()
657internal static InvalidOperationException DynamicSQLJoinUnsupported()
661internal static InvalidOperationException DynamicSQLNoTableInfo()
665internal static InvalidOperationException DynamicSQLNoKeyInfoDelete()
669internal static InvalidOperationException DynamicSQLNoKeyInfoUpdate()
673internal static InvalidOperationException DynamicSQLNoKeyInfoRowVersionDelete()
677internal static InvalidOperationException DynamicSQLNoKeyInfoRowVersionUpdate()
681internal static InvalidOperationException DynamicSQLNestedQuote(string name, string quote)
685internal static InvalidOperationException NoQuoteChange()
689internal static InvalidOperationException MissingSourceCommand()
693internal static InvalidOperationException MissingSourceCommandConnection()
System.Data.Odbc (14)
System.Diagnostics.Process (3)
System.Drawing.Common.Tests (119)
System\Drawing\BitmapTests.cs (6)
909Assert.Throws<InvalidOperationException>(() => bitmap.MakeTransparent(Color.Red));
933Assert.Throws<InvalidOperationException>(() => bitmap.SetPixel(0, 0, Color.Red));
1188Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat));
1189Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat, new BitmapData()));
1191Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(1, 1, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat));
1192Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(1, 1, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat, new BitmapData()));
System\Drawing\Graphics_DrawBezierTests.cs (5)
92Assert.Throws<InvalidOperationException>(() => graphics.DrawBezier(pen, 1, 2, 3, 4, 5, 6, 7, 8));
93Assert.Throws<InvalidOperationException>(() => graphics.DrawBezier(pen, Point.Empty, Point.Empty, Point.Empty, Point.Empty));
94Assert.Throws<InvalidOperationException>(() => graphics.DrawBezier(pen, PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty));
166Assert.Throws<InvalidOperationException>(() => graphics.DrawBeziers(pen, new Point[2]));
167Assert.Throws<InvalidOperationException>(() => graphics.DrawBeziers(pen, new PointF[2]));
System\Drawing\Graphics_DrawLineTests.cs (6)
72Assert.Throws<InvalidOperationException>(() => graphics.DrawLine(pen, Point.Empty, Point.Empty));
73Assert.Throws<InvalidOperationException>(() => graphics.DrawLine(pen, 0, 0, 0, 0));
74Assert.Throws<InvalidOperationException>(() => graphics.DrawLine(pen, PointF.Empty, PointF.Empty));
75Assert.Throws<InvalidOperationException>(() => graphics.DrawLine(pen, 0f, 0f, 0f, 0f));
149Assert.Throws<InvalidOperationException>(() => graphics.DrawLines(pen, new Point[2]));
150Assert.Throws<InvalidOperationException>(() => graphics.DrawLines(pen, new PointF[2]));
System\Drawing\GraphicsTests.Core.cs (4)
30Assert.Throws<InvalidOperationException>(() => graphics.TransformElements);
31Assert.Throws<InvalidOperationException>(() => graphics.TransformElements = Matrix3x2.Identity);
102Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangle(pen, new RectangleF(0f, 0f, 1f, 1f)));
178Assert.Throws<InvalidOperationException>(() => graphics.FillPie(brush, new RectangleF(0, 0, 1, 1), 0, 90));
System\Drawing\GraphicsTests.cs (80)
62Assert.Throws<InvalidOperationException>(() => graphics.GetHdc());
350Assert.Throws<InvalidOperationException>(() => graphics.CompositingMode);
351Assert.Throws<InvalidOperationException>(() => graphics.CompositingMode = CompositingMode.SourceCopy);
434Assert.Throws<InvalidOperationException>(() => graphics.CompositingQuality);
435Assert.Throws<InvalidOperationException>(() => graphics.CompositingQuality = CompositingQuality.AssumeLinear);
488Assert.Throws<InvalidOperationException>(() => graphics.DpiX);
514Assert.Throws<InvalidOperationException>(() => graphics.DpiX);
559Assert.Throws<InvalidOperationException>(graphics.Flush);
560Assert.Throws<InvalidOperationException>(() => graphics.Flush(FlushIntention.Sync));
622Assert.Throws<InvalidOperationException>(() => graphics.InterpolationMode);
623Assert.Throws<InvalidOperationException>(() => graphics.InterpolationMode = InterpolationMode.HighQualityBilinear);
675Assert.Throws<InvalidOperationException>(() => graphics.PageScale);
676Assert.Throws<InvalidOperationException>(() => graphics.PageScale = 10);
736Assert.Throws<InvalidOperationException>(() => graphics.PageUnit);
737Assert.Throws<InvalidOperationException>(() => graphics.PageUnit = GraphicsUnit.Document);
796Assert.Throws<InvalidOperationException>(() => graphics.PixelOffsetMode);
797Assert.Throws<InvalidOperationException>(() => graphics.PixelOffsetMode = PixelOffsetMode.Default);
878Assert.Throws<InvalidOperationException>(() => graphics.RenderingOrigin);
879Assert.Throws<InvalidOperationException>(() => graphics.RenderingOrigin = Point.Empty);
938Assert.Throws<InvalidOperationException>(() => graphics.SmoothingMode);
939Assert.Throws<InvalidOperationException>(() => graphics.SmoothingMode = SmoothingMode.AntiAlias);
988Assert.Throws<InvalidOperationException>(() => graphics.TextContrast);
989Assert.Throws<InvalidOperationException>(() => graphics.TextContrast = 5);
1041Assert.Throws<InvalidOperationException>(() => graphics.TextRenderingHint);
1042Assert.Throws<InvalidOperationException>(() => graphics.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit);
1124Assert.Throws<InvalidOperationException>(() => graphics.Transform);
1125Assert.Throws<InvalidOperationException>(() => graphics.Transform = matrix);
1166Assert.Throws<InvalidOperationException>(graphics.ResetTransform);
1270Assert.Throws<InvalidOperationException>(() => graphics.MultiplyTransform(matrix));
1271Assert.Throws<InvalidOperationException>(() => graphics.MultiplyTransform(matrix, MatrixOrder.Append));
1346Assert.Throws<InvalidOperationException>(() => graphics.TranslateTransform(0, 0));
1347Assert.Throws<InvalidOperationException>(() => graphics.TranslateTransform(0, 0, MatrixOrder.Append));
1427Assert.Throws<InvalidOperationException>(() => graphics.ScaleTransform(0, 0));
1428Assert.Throws<InvalidOperationException>(() => graphics.ScaleTransform(0, 0, MatrixOrder.Append));
1503Assert.Throws<InvalidOperationException>(() => graphics.RotateTransform(0));
1504Assert.Throws<InvalidOperationException>(() => graphics.RotateTransform(0, MatrixOrder.Append));
1660Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty));
1661Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty, CopyPixelOperation.DestinationInvert));
1662Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty));
1663Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty, CopyPixelOperation.DestinationInvert));
1894Assert.Throws<InvalidOperationException>(() => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, [Point.Empty]));
1895Assert.Throws<InvalidOperationException>(() => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, [PointF.Empty]));
1937Assert.Throws<InvalidOperationException>(() => graphics.GetNearestColor(Color.Red));
2013Assert.Throws<InvalidOperationException>(() => graphics.DrawArc(pen, new Rectangle(0, 0, 1, 1), 0, 90));
2014Assert.Throws<InvalidOperationException>(() => graphics.DrawArc(pen, 0, 0, 1, 1, 0, 90));
2015Assert.Throws<InvalidOperationException>(() => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 1), 0, 90));
2016Assert.Throws<InvalidOperationException>(() => graphics.DrawArc(pen, 0f, 0f, 1f, 1f, 0, 90));
2070Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangle(pen, new Rectangle(0, 0, 1, 1)));
2071Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangle(pen, 0, 0, 1, 1));
2072Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangle(pen, 0f, 0f, 1f, 1f));
2143Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangles(pen, new Rectangle[2]));
2144Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangles(pen, new RectangleF[2]));
2198Assert.Throws<InvalidOperationException>(() => graphics.DrawEllipse(pen, new Rectangle(0, 0, 1, 1)));
2199Assert.Throws<InvalidOperationException>(() => graphics.DrawEllipse(pen, 0, 0, 1, 1));
2200Assert.Throws<InvalidOperationException>(() => graphics.DrawEllipse(pen, new RectangleF(0, 0, 1, 1)));
2201Assert.Throws<InvalidOperationException>(() => graphics.DrawEllipse(pen, 0f, 0f, 1f, 1f));
2281Assert.Throws<InvalidOperationException>(() => graphics.DrawPie(pen, new Rectangle(0, 0, 1, 1), 0, 90));
2282Assert.Throws<InvalidOperationException>(() => graphics.DrawPie(pen, 0, 0, 1, 1, 0, 90));
2283Assert.Throws<InvalidOperationException>(() => graphics.DrawPie(pen, new RectangleF(0, 0, 1, 1), 0, 90));
2284Assert.Throws<InvalidOperationException>(() => graphics.DrawPie(pen, 0f, 0f, 1f, 1f, 0, 90));
2358Assert.Throws<InvalidOperationException>(() => graphics.DrawPolygon(pen, new Point[2]));
2359Assert.Throws<InvalidOperationException>(() => graphics.DrawPolygon(pen, new PointF[2]));
2431Assert.Throws<InvalidOperationException>(() => graphics.DrawPath(pen, graphicsPath));
2539Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new Point[2]));
2540Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new PointF[2]));
2541Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new Point[2], 1));
2542Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new PointF[2], 1));
2543Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new PointF[2], 0, 2));
2544Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new Point[2], 0, 2, 1));
2545Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new PointF[2], 0, 2, 1));
2631Assert.Throws<InvalidOperationException>(() => graphics.DrawClosedCurve(pen, new Point[3]));
2632Assert.Throws<InvalidOperationException>(() => graphics.DrawClosedCurve(pen, new Point[3], 1, FillMode.Winding));
2633Assert.Throws<InvalidOperationException>(() => graphics.DrawClosedCurve(pen, new PointF[3]));
2634Assert.Throws<InvalidOperationException>(() => graphics.DrawClosedCurve(pen, new PointF[3], 1, FillMode.Winding));
2710Assert.Throws<InvalidOperationException>(() => graphics.FillPie(brush, new Rectangle(0, 0, 1, 1), 0, 90));
2711Assert.Throws<InvalidOperationException>(() => graphics.FillPie(brush, 0, 0, 1, 1, 0, 90));
2712Assert.Throws<InvalidOperationException>(() => graphics.FillPie(brush, 0f, 0f, 1f, 1f, 0, 90));
2760Assert.Throws<InvalidOperationException>(() => graphics.Clear(Color.Red));
2910Assert.Throws<InvalidOperationException>(() => graphics.DrawCachedBitmap(cachedBitmap, 0, 0));
2935Assert.Throws<InvalidOperationException>(() => graphics2.DrawCachedBitmap(cachedBitmap, 0, 0));
System.Formats.Asn1 (9)
System.Formats.Cbor (65)
System.Formats.Nrbf (3)
System.Formats.Tar (6)
System.IO.Compression (2)
System.IO.Compression.Brotli (7)
System.IO.Packaging (35)
System.IO.Pipelines (12)
System.Linq (2)
System.Linq.AsyncEnumerable (32)
System.Linq.Expressions (67)
System\Linq\Expressions\Error.cs (43)
31internal static InvalidOperationException InvalidMetaObjectCreated(object? p0)
59internal static InvalidOperationException CollectionModifiedWhileEnumerating()
80internal static InvalidOperationException BinderNotCompatibleWithCallSite(object? p0, object? p1, object? p2)
87internal static InvalidOperationException DynamicBindingNeedsRestrictions(object? p0, object? p1)
108internal static InvalidOperationException BindingCannotBeNull()
143internal static InvalidOperationException TypeParameterIsNotDelegate(object? p0)
185internal static InvalidOperationException NoOrInvalidRuleProduced()
399internal static InvalidOperationException ExtensionNodeMustOverrideProperty(object? p0)
420internal static InvalidOperationException CoercionOperatorNotDefined(object? p0, object? p1)
427internal static InvalidOperationException UnaryOperatorNotDefined(object? p0, object? p1)
434internal static InvalidOperationException BinaryOperatorNotDefined(object? p0, object? p1, object? p2)
441internal static InvalidOperationException ReferenceEqualityNotDefined(object? p0, object? p1)
448internal static InvalidOperationException OperandTypesDoNotMatchParameters(object? p0, object? p1)
455internal static InvalidOperationException OverloadOperatorTypeDoesNotMatchConversionType(object? p0, object? p1)
462internal static InvalidOperationException ConversionIsNotSupportedForArithmeticTypes()
582internal static InvalidOperationException CannotAutoInitializeValueTypeElementThroughProperty(object? p0)
589internal static InvalidOperationException CannotAutoInitializeValueTypeMemberThroughProperty(object? p0)
603internal static InvalidOperationException CoalesceUsedOnNonNullType()
610internal static InvalidOperationException ExpressionTypeCannotInitializeArrayType(object? p0, object? p1)
962internal static InvalidOperationException MethodWithArgsDoesNotExistOnType(object? p0, object? p1)
969internal static InvalidOperationException GenericMethodWithArgsDoesNotExistOnType(object? p0, object? p1)
976internal static InvalidOperationException MethodWithMoreThanOneMatch(object? p0, object? p1)
983internal static InvalidOperationException PropertyWithMoreThanOneMatch(object? p0, object? p1)
1011internal static InvalidOperationException LabelTargetAlreadyDefined(object? p0)
1018internal static InvalidOperationException LabelTargetUndefined(object? p0)
1025internal static InvalidOperationException ControlCannotLeaveFinally()
1032internal static InvalidOperationException ControlCannotLeaveFilterTest()
1039internal static InvalidOperationException AmbiguousJump(object? p0)
1046internal static InvalidOperationException ControlCannotEnterTry()
1053internal static InvalidOperationException ControlCannotEnterExpression()
1060internal static InvalidOperationException NonLocalJumpWithValue(object? p0)
1091internal static InvalidOperationException InvalidLvalue(ExpressionType p0)
1099internal static InvalidOperationException UndefinedVariable(object? p0, object? p1, object? p2)
1106internal static InvalidOperationException CannotCloseOverByRef(object? p0, object? p1)
1113internal static InvalidOperationException UnexpectedVarArgsCall(object? p0)
1120internal static InvalidOperationException RethrowRequiresCatch()
1127internal static InvalidOperationException TryNotAllowedInFilter()
1134internal static InvalidOperationException MustRewriteToSameNode(object? p0, object? p1, object? p2)
1141internal static InvalidOperationException MustRewriteChildToSameType(object? p0, object? p1, object? p2)
1148internal static InvalidOperationException MustRewriteWithoutMethod(object? p0, object? p1)
1219internal static InvalidOperationException NonAbstractConstructorRequired()
1235internal static InvalidOperationException EnumerationIsDone()
1315internal static InvalidOperationException IncorrectNumberOfLambdaArguments()
System.Linq.Parallel (47)
System.Linq.Queryable (2)
System.Memory (3)
System.Net.Http (3)
System.Net.HttpListener (2)
System.Net.Ping (10)
System.Net.Primitives (3)
System.Net.Security (6)
System.Net.ServerSentEvents (2)
System.Net.Sockets (8)
System.ObjectModel (1)
System.Private.CoreLib (109)
System.Private.DataContractSerialization (1)
System.Private.Windows.Core (1)
System.Private.Windows.GdiPlus (1)
System.Private.Xml (6)
System.Private.Xml.Linq (20)
System.Reflection.Emit (8)
System.Reflection.Metadata (85)
System.Reflection.TypeExtensions (3)
System.Runtime (1)
System.Runtime.Caching (1)
System.Security.Claims (3)
System.Security.Cryptography (12)
System.Security.Cryptography.Cose (48)
System.ServiceModel.Http.Tests (2)
System.ServiceModel.Primitives.Tests (38)
System.ServiceModel.Syndication (1)
System.Text.Json (294)
System.Text.RegularExpressions (2)
System.Threading (23)
System.Threading.Channels (1)
System.Threading.Tasks.Dataflow (4)
System.Threading.Tasks.Parallel (57)
System.Windows.Controls.Ribbon (2)
System.Windows.Forms (85)
System.Windows.Forms.Design (28)
System.Windows.Forms.Design.Tests (93)
System.Windows.Forms.Primitives (5)
System.Windows.Forms.Primitives.Tests (4)
System.Windows.Forms.Primitives.TestUtilities.Tests (1)
System.Windows.Forms.Tests (339)
System.Windows.Forms.UI.IntegrationTests (2)
System.Xaml.Tests (22)
UIAutomationClient (2)
VBCSCompiler.UnitTests (1)
WindowsBase.Tests (228)
System\Windows\FreezableTests.cs (83)
58Assert.Throws<InvalidOperationException>(() => freezable.Changed += handler);
59Assert.Throws<InvalidOperationException>(() => freezable.Changed += null);
60Assert.Throws<InvalidOperationException>(() => freezable.Changed -= handler);
61Assert.Throws<InvalidOperationException>(() => freezable.Changed -= null);
74Assert.Throws<InvalidOperationException>(() => freezable.Changed += handler);
75Assert.Throws<InvalidOperationException>(() => freezable.Changed += null);
76Assert.Throws<InvalidOperationException>(() => freezable.Changed -= handler);
77Assert.Throws<InvalidOperationException>(() => freezable.Changed -= null);
91Assert.Throws<InvalidOperationException>(() => freezable.Changed += handler);
92Assert.Throws<InvalidOperationException>(() => freezable.Changed += null);
93Assert.Throws<InvalidOperationException>(() => freezable.Changed -= handler);
94Assert.Throws<InvalidOperationException>(() => freezable.Changed -= null);
357Assert.Throws<InvalidOperationException>(() => freezable.IsFrozen);
815Assert.Throws<InvalidOperationException>(() => obj.ClearValue(property));
825Assert.Throws<InvalidOperationException>(() => obj.ClearValue(property));
835Assert.Throws<InvalidOperationException>(() => obj.ClearValue(property));
848Assert.Throws<InvalidOperationException>(() => obj.ClearValue(property));
1290Assert.Throws<InvalidOperationException>(() => obj.ClearValue(key));
1301Assert.Throws<InvalidOperationException>(() => obj.ClearValue(key));
1314Assert.Throws<InvalidOperationException>(() => obj.ClearValue(key));
1627Assert.Throws<InvalidOperationException>(() => freezable.Clone());
1911Assert.Throws<InvalidOperationException>(() => freezable.CloneCore(sourceFreezable));
1995Assert.Throws<InvalidOperationException>(() => freezable.CloneCore(sourceFreezable));
2085Assert.Throws<InvalidOperationException>(() => freezable.CloneCore(sourceFreezable));
2175Assert.Throws<InvalidOperationException>(() => freezable.CloneCore(sourceFreezable));
2510Assert.Throws<InvalidOperationException>(() => freezable.CloneCurrentValue());
2794Assert.Throws<InvalidOperationException>(() => freezable.CloneCurrentValueCore(sourceFreezable));
2879Assert.Throws<InvalidOperationException>(() => freezable.CloneCurrentValueCore(sourceFreezable));
2970Assert.Throws<InvalidOperationException>(() => freezable.CloneCurrentValueCore(sourceFreezable));
3061Assert.Throws<InvalidOperationException>(() => freezable.CloneCurrentValueCore(sourceFreezable));
3659Assert.Throws<InvalidOperationException>(() => obj.CoerceValue(property));
3819Assert.Throws<InvalidOperationException>(() => freezable.Freeze());
3843Assert.Throws<InvalidOperationException>(() => freezable.Freeze());
4017Assert.Throws<InvalidOperationException>(() => freezable.Freeze());
4063Assert.Throws<InvalidOperationException>(() => freezable.Freeze());
4626Assert.Throws<InvalidOperationException>(() => freezable.GetAsFrozen());
4635Assert.Throws<InvalidOperationException>(() => freezable.GetAsFrozen());
4907Assert.Throws<InvalidOperationException>(() => freezable.GetAsFrozenCore(sourceFreezable));
4992Assert.Throws<InvalidOperationException>(() => freezable.GetAsFrozenCore(sourceFreezable));
5083Assert.Throws<InvalidOperationException>(() => freezable.GetAsFrozenCore(sourceFreezable));
5174Assert.Throws<InvalidOperationException>(() => freezable.GetAsFrozenCore(sourceFreezable));
5479Assert.Throws<InvalidOperationException>(() => freezable.GetCurrentValueAsFrozen());
5488Assert.Throws<InvalidOperationException>(() => freezable.GetCurrentValueAsFrozen());
5760Assert.Throws<InvalidOperationException>(() => freezable.GetCurrentValueAsFrozenCore(sourceFreezable));
5845Assert.Throws<InvalidOperationException>(() => freezable.GetCurrentValueAsFrozenCore(sourceFreezable));
5936Assert.Throws<InvalidOperationException>(() => freezable.GetCurrentValueAsFrozenCore(sourceFreezable));
6026Assert.Throws<InvalidOperationException>(() => freezable.GetCurrentValueAsFrozenCore(sourceFreezable));
6174Assert.Throws<InvalidOperationException>(() => obj.GetValue(property));
6235Assert.Throws<InvalidOperationException>(() => freezable.ReadPreamble());
6364Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(null!, value1));
6365Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(null!, value3));
6368Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value1, value3));
6370Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value2, value1));
6371Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value2, value3));
6373Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value3, value1));
6419Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(null!, value1));
6420Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(null!, value3));
6423Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value1, value3));
6425Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value2, value1));
6426Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value2, value3));
6428Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value3, value1));
6540Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(null!, value1, property));
6541Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(null!, value3, property));
6544Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value1, value3, property));
6546Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value2, value1, property));
6547Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value2, value3, property));
6549Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value3, value1, property));
6597Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(null!, value1, property));
6598Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(null!, value3, property));
6601Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value1, value3, property));
6603Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value2, value1, property));
6604Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value2, value3, property));
6606Assert.Throws<InvalidOperationException>(() => freezable.OnFreezablePropertyChanged(value3, value1, property));
6807Assert.Throws<InvalidOperationException>(() => obj.SetValue(property, "value"));
6858Assert.Throws<InvalidOperationException>(() => freezable.SetValue(property, true));
6862Assert.Throws<InvalidOperationException>(() => freezable.SetValue(property, true));
6866Assert.Throws<InvalidOperationException>(() => freezable.SetValue(property, false));
6879Assert.Throws<InvalidOperationException>(() => freezable.SetValue(property, value));
6894Assert.Throws<InvalidOperationException>(() => freezable.SetValue(property, value));
7244Assert.Throws<InvalidOperationException>(() => freezable.WritePreamble());
7247Assert.Throws<InvalidOperationException>(() => freezable.WritePreamble());
7256Assert.Throws<InvalidOperationException>(() => freezable.WritePreamble());
7268Assert.Throws<InvalidOperationException>(() => freezable.WritePreamble());
System\Windows\RectTests.cs (23)
450Assert.Throws<InvalidOperationException>(() => rect.Location = rect.Location);
451Assert.Throws<InvalidOperationException>(() => rect.Location = new Point(1, 2));
551Assert.Throws<InvalidOperationException>(() => rect.Size = new Size(1, 2));
645Assert.Throws<InvalidOperationException>(() => rect.X = rect.X);
646Assert.Throws<InvalidOperationException>(() => rect.X = 1);
718Assert.Throws<InvalidOperationException>(() => rect.Y = rect.Y);
719Assert.Throws<InvalidOperationException>(() => rect.Y = 1);
788Assert.Throws<InvalidOperationException>(() => rect.Width = rect.Width);
789Assert.Throws<InvalidOperationException>(() => rect.Width = 1);
790Assert.Throws<InvalidOperationException>(() => rect.Width = -1);
870Assert.Throws<InvalidOperationException>(() => rect.Height = rect.Height);
871Assert.Throws<InvalidOperationException>(() => rect.Height = 1);
872Assert.Throws<InvalidOperationException>(() => rect.Height = -1);
1807Assert.Throws<InvalidOperationException>(() => Rect.Empty.Inflate(0, 0));
1808Assert.Throws<InvalidOperationException>(() => Rect.Empty.Inflate(new Size(0, 0)));
1809Assert.Throws<InvalidOperationException>(() => Rect.Inflate(Rect.Empty, 0, 0));
1810Assert.Throws<InvalidOperationException>(() => Rect.Inflate(Rect.Empty, new Size(0, 0)));
2752Assert.Throws<InvalidOperationException>(() => Rect.Empty.Offset(0, 0));
2753Assert.Throws<InvalidOperationException>(() => Rect.Empty.Offset(new Vector(0, 0)));
2754Assert.Throws<InvalidOperationException>(() => Rect.Offset(Rect.Empty, 0, 0));
2755Assert.Throws<InvalidOperationException>(() => Rect.Offset(Rect.Empty, new Vector(0, 0)));
2783Assert.Throws<InvalidOperationException>(() => Rect.Parse(null));
2809Assert.Throws<InvalidOperationException>(() => Rect.Parse(source));
WindowsFormsIntegration (1)
XmlFormattersWebSite (2)
xunit.assert (2)