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)
12112 instantiations of InvalidOperationException
Analyzer.Utilities.UnitTests (1)
AnalyzerRunner (1)
aspire (24)
Aspire.Azure.AI.Inference (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.Npgsql.EntityFrameworkCore.PostgreSQL (3)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
Aspire.Azure.Npgsql.Tests (1)
Aspire.Azure.Search.Documents (1)
Aspire.Azure.Security.KeyVault (2)
Aspire.Azure.Security.KeyVault.Tests (1)
Aspire.Azure.Storage.Blobs (3)
Aspire.Azure.Storage.Queues (3)
Aspire.Cli.Tests (19)
Aspire.Confluent.Kafka (3)
Aspire.Confluent.Kafka.Tests (10)
Aspire.Dashboard (43)
Aspire.Dashboard.Components.Tests (14)
Aspire.Dashboard.Tests (8)
Aspire.EndToEnd.Tests (12)
Aspire.Hosting (92)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (19)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Azure.AppService (3)
Aspire.Hosting.Azure.CosmosDB (2)
Aspire.Hosting.Azure.EventHubs (2)
Aspire.Hosting.Azure.KeyVault (1)
Aspire.Hosting.Azure.PostgreSQL (1)
Aspire.Hosting.Azure.ServiceBus (2)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Storage (9)
Aspire.Hosting.Azure.Tests (6)
Aspire.Hosting.Docker (10)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.GitHub.Models.Tests (1)
Aspire.Hosting.Kafka (1)
Aspire.Hosting.Kafka.Tests (1)
Aspire.Hosting.Kubernetes (9)
Aspire.Hosting.MongoDB (2)
Aspire.Hosting.MySql (3)
Aspire.Hosting.MySql.Tests (1)
Aspire.Hosting.NodeJs.Tests (2)
Aspire.Hosting.OpenAI.Tests (1)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.Orleans (1)
Aspire.Hosting.PostgreSQL (3)
Aspire.Hosting.PostgreSQL.Tests (1)
Aspire.Hosting.Python.Tests (2)
Aspire.Hosting.Qdrant (3)
Aspire.Hosting.RabbitMQ.Tests (1)
Aspire.Hosting.Redis (1)
Aspire.Hosting.SqlServer (3)
Aspire.Hosting.Testing (9)
Aspire.Hosting.Testing.Tests (2)
Aspire.Hosting.Tests (31)
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Valkey.Tests (1)
Aspire.Hosting.Yarp (1)
Aspire.Microsoft.Azure.Cosmos (6)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.Data.SqlClient.Tests (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (1)
Aspire.Milvus.Client (1)
Aspire.Milvus.Client.Tests (1)
Aspire.MongoDB.Driver (1)
Aspire.MongoDB.Driver.Tests (1)
Aspire.MongoDB.Driver.v3.Tests (1)
Aspire.MySqlConnector (1)
Aspire.MySqlConnector.Tests (1)
Aspire.NATS.Net (1)
Aspire.NATS.Net.Tests (6)
Aspire.Npgsql (1)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (6)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
Aspire.Npgsql.Tests (1)
Aspire.OpenAI (3)
Aspire.Oracle.EntityFrameworkCore (6)
Aspire.Oracle.EntityFrameworkCore.Tests (1)
Aspire.Playground.Tests (1)
Aspire.Pomelo.EntityFrameworkCore.MySql (7)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (1)
Aspire.Qdrant.Client (1)
Aspire.Qdrant.Client.Tests (1)
Aspire.RabbitMQ.Client.Tests (4)
Aspire.RabbitMQ.Client.v7.Tests (4)
Aspire.RuntimeIdentifier.Tool (1)
Aspire.Seq (1)
Aspire.StackExchange.Redis (1)
Aspire.StackExchange.Redis.Tests (1)
Aspire.Templates.Tests (11)
BasicTestApp (3)
BasicWebSite (11)
Benchmarks (1)
BoundTreeGenerator (2)
BuildActionTelemetryTable (3)
BuildBoss (1)
BuildValidator (4)
ClientSample (3)
CodeGenerator (1)
CodeStyleConfigFileGenerator (4)
ConfigurationSchemaGenerator (12)
csc (5)
CSharpSyntaxGenerator (6)
DemoConsole (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)
FormatterWebSite (1)
GenerateDocumentationAndConfigFiles (58)
Program.cs (4)
933onDuplicateEntryInRelease: (_1, _2, _3, _4, line) => throw new InvalidOperationException($"Duplicate entry in {shippedFile} at {line.LineNumber}: '{line}'"),
934onInvalidEntry: (line, _2, _3, _4) => throw new InvalidOperationException($"Invalid entry in {shippedFile} at {line.LineNumber}: '{line}'"),
943onDuplicateEntryInRelease: (_1, _2, _3, _4, line) => throw new InvalidOperationException($"Duplicate entry in {unshippedFile} at {line.LineNumber}: '{line}'"),
944onInvalidEntry: (line, _2, _3, _4) => throw new InvalidOperationException($"Invalid entry in {unshippedFile} at {line.LineNumber}: '{line}'"),
GenericHostWebSite (1)
GetDocument.Insider (4)
HealthChecksSandbox.AppHost (1)
HelixTestRunner (1)
http2cat (4)
HttpClientApp (2)
IdeBenchmarks (2)
Identity.DefaultUI.WebSite (2)
IdentitySample.DefaultUI (2)
IdentitySample.PasskeyConformance (1)
IdentitySample.PasskeyUI (1)
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 (25)
ILLink.Tasks (1)
Infrastructure.Common (10)
InMemory.FunctionalTests (25)
InProcessWebSite (3)
Interop.FunctionalTests (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));
InteropClient (11)
InteropTests (3)
IOperationGenerator (2)
Keycloak.Web (1)
KeyManagementSimulator (2)
Metrics (46)
Metrics.Legacy (46)
Microsoft.Analyzers.Local (4)
Microsoft.Analyzers.Local.Tests (3)
Microsoft.Arcade.Common (3)
Microsoft.Arcade.Test.Common (3)
Microsoft.AspNetCore (9)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Antiforgery (4)
Microsoft.AspNetCore.App.Analyzers (23)
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 (116)
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 (78)
Microsoft.AspNetCore.Components.Endpoints.Tests (12)
Microsoft.AspNetCore.Components.Forms (8)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.Performance (1)
Microsoft.AspNetCore.Components.QuickGrid (3)
Microsoft.AspNetCore.Components.QuickGrid.Tests (2)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Components.Server (36)
Microsoft.AspNetCore.Components.Server.Tests (9)
Microsoft.AspNetCore.Components.Tests (33)
Microsoft.AspNetCore.Components.Web (53)
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 (3)
Microsoft.AspNetCore.Components.WebView.Test (3)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.ConcurrencyLimiter (2)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (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 (33)
ExceptionHandlerMiddlewareTest.cs (12)
108var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, loggerFactory: new TestLoggerFactory(sink, true));
132var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, loggerFactory: new TestLoggerFactory(sink, true));
170var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor);
192var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, loggerFactory: new TestLoggerFactory(sink, true));
231var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, loggerFactory: new TestLoggerFactory(sink, true));
267var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers);
297var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers);
339var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, meterFactory);
361var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, meterFactory);
386var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, meterFactory: meterFactory);
537var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, meterFactory: meterFactory);
563var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, meterFactory: meterFactory);
Microsoft.AspNetCore.Grpc.JsonTranscoding (74)
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 (13)
Microsoft.AspNetCore.Http.Connections.Common (3)
Microsoft.AspNetCore.Http.Connections.Tests (6)
Microsoft.AspNetCore.Http.Extensions (59)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Microbenchmarks (3)
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 (14)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (11)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
Microsoft.AspNetCore.Identity.InMemory.Test (3)
Microsoft.AspNetCore.Identity.Test (24)
Microsoft.AspNetCore.Identity.UI (28)
Microsoft.AspNetCore.InternalTesting (5)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (7)
Microsoft.AspNetCore.Mvc.Abstractions (11)
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
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 (17)
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Microsoft.AspNetCore.Mvc.TagHelpers (15)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
Microsoft.AspNetCore.Mvc.Testing (9)
Microsoft.AspNetCore.Mvc.ViewFeatures (54)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Microsoft.AspNetCore.OpenApi (23)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (5)
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.Owin.Microbenchmarks (1)
Microsoft.AspNetCore.RateLimiting (5)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.RequestDecompression (2)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching (3)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCompression.Tests (10)
Microsoft.AspNetCore.Rewrite (6)
Microsoft.AspNetCore.Routing (48)
Microsoft.AspNetCore.Routing.FunctionalTests (2)
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
Microsoft.AspNetCore.Routing.Tests (3)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (42)
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 (112)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (13)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (22)
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 (2)
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 (13)
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.Framework (13)
Microsoft.Build.Tasks.CodeAnalysis (11)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (11)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
Microsoft.Cci.Extensions (6)
Microsoft.CodeAnalysis (82)
Microsoft.CodeAnalysis.Analyzers (58)
Microsoft.CodeAnalysis.Analyzers.UnitTests (7)
Microsoft.CodeAnalysis.AnalyzerUtilities (49)
Microsoft.CodeAnalysis.BannedApiAnalyzers (56)
Microsoft.CodeAnalysis.CodeStyle (41)
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
Microsoft.CodeAnalysis.Collections.Package (13)
Microsoft.CodeAnalysis.Compiler.Test.Resources (1)
Microsoft.CodeAnalysis.Contracts.Package (3)
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 (16)
Microsoft.CodeAnalysis.EditorFeatures (31)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.EditorFeatures.Text (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (5)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (10)
Microsoft.CodeAnalysis.Extensions.Package (13)
Microsoft.CodeAnalysis.ExternalAccess.Extensions (4)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (92)
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (39)
37_ => throw new InvalidOperationException(),
88_ => throw new InvalidOperationException(),
131_ => throw new InvalidOperationException(),
162_ => throw new InvalidOperationException(),
198_ => throw new InvalidOperationException(),
232_ => throw new InvalidOperationException(),
281_ => throw new InvalidOperationException(),
324_ => throw new InvalidOperationException(),
356_ => throw new InvalidOperationException(),
388_ => throw new InvalidOperationException(),
423_ => throw new InvalidOperationException(),
471_ => throw new InvalidOperationException(),
505_ => throw new InvalidOperationException(),
543_ => throw new InvalidOperationException(),
570_ => throw new InvalidOperationException(),
643_ => throw new InvalidOperationException(),
694_ => throw new InvalidOperationException(),
731_ => throw new InvalidOperationException(),
767_ => throw new InvalidOperationException(),
803_ => throw new InvalidOperationException(),
839_ => throw new InvalidOperationException(),
890_ => throw new InvalidOperationException(),
927_ => throw new InvalidOperationException(),
963_ => throw new InvalidOperationException(),
1005_ => throw new InvalidOperationException(),
1054_ => throw new InvalidOperationException(),
1109_ => throw new InvalidOperationException(),
1145_ => throw new InvalidOperationException(),
1198_ => throw new InvalidOperationException(),
1217_ => throw new InvalidOperationException(),
1236_ => throw new InvalidOperationException(),
1258_ => throw new InvalidOperationException(),
1280_ => throw new InvalidOperationException(),
1302_ => throw new InvalidOperationException(),
1328_ => throw new InvalidOperationException(),
1356_ => throw new InvalidOperationException(),
1380throw new InvalidOperationException();
1401_ => throw new InvalidOperationException(),
1440_ => throw new InvalidOperationException(),
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (16)
Microsoft.CodeAnalysis.LanguageServer (7)
Microsoft.CodeAnalysis.LanguageServer.Protocol (52)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (9)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (56)
Microsoft.CodeAnalysis.PooledObjects.Package (3)
Microsoft.CodeAnalysis.PublicApiAnalyzers (47)
Microsoft.CodeAnalysis.Rebuild (9)
Microsoft.CodeAnalysis.Rebuild.UnitTests (5)
Microsoft.CodeAnalysis.Remote.ServiceHub (5)
Microsoft.CodeAnalysis.Remote.Workspaces (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (52)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (4)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Test.Utilities (29)
Microsoft.CodeAnalysis.Threading.Package (13)
Microsoft.CodeAnalysis.UnitTests (10)
Microsoft.CodeAnalysis.Workspaces (125)
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (19)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.XunitHook (1)
Microsoft.CommonLanguageServerProtocol.Framework.Example (3)
Microsoft.CommonLanguageServerProtocol.Framework.Package (34)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Microsoft.Data.Analysis (2)
Microsoft.Data.Analysis.Tests (2)
Microsoft.DotNet.Arcade.Sdk (5)
Microsoft.DotNet.ArcadeAzureIntegration (3)
Microsoft.DotNet.Baselines.Tasks (2)
Microsoft.DotNet.Build.Tasks.Feed (3)
Microsoft.DotNet.Build.Tasks.Feed.Tests (3)
Microsoft.DotNet.Build.Tasks.Installers (14)
Microsoft.DotNet.Build.Tasks.Packaging (5)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.Internal.SymbolHelper (1)
Microsoft.DotNet.NuGetRepack.Tasks (2)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
Microsoft.DotNet.RemoteExecutor (2)
Microsoft.DotNet.SignTool (3)
Microsoft.DotNet.SignTool.Tests (1)
Microsoft.DotNet.StrongName (6)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (5)
Microsoft.DotNet.XliffTasks (4)
Microsoft.DotNet.XUnitAssert.Tests (10)
Microsoft.DotNet.XUnitExtensions (4)
Microsoft.DotNet.XUnitV3Extensions (1)
Microsoft.Extensions.AI (10)
Microsoft.Extensions.AI.Abstractions (8)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.AI.AzureAIInference (6)
Microsoft.Extensions.AI.Evaluation (4)
Microsoft.Extensions.AI.Evaluation.Console (5)
Microsoft.Extensions.AI.Evaluation.Console.Tests (5)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (4)
Microsoft.Extensions.AI.Evaluation.NLP (2)
Microsoft.Extensions.AI.Evaluation.Quality (2)
Microsoft.Extensions.AI.Evaluation.Reporting (5)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
Microsoft.Extensions.AI.Evaluation.Safety (11)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI (6)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Templates.Tests (6)
Microsoft.Extensions.AI.Tests (3)
Microsoft.Extensions.AmbientMetadata.Application (2)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Extensions.ApiDescription.Tool.Tests (2)
Microsoft.Extensions.AsyncState (3)
Microsoft.Extensions.Caching.Abstractions (1)
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)
240throw new InvalidOperationException(SR.Format(SR.Error_MissingConfig,
503throw new InvalidOperationException(SR.Format(SR.Error_FailedBinding, configValue, section.Path, type));
559throw new InvalidOperationException(SR.Format(SR.Error_CannotActivateAbstractOrInterface, type));
569throw new InvalidOperationException(SR.Format(SR.Error_MissingPublicInstanceConstructor, type));
574throw new InvalidOperationException(SR.Format(SR.Error_MultipleParameterizedConstructors, type));
584throw new InvalidOperationException(SR.Format(SR.Error_CannotBindToConstructorParameter, type, nameOfInvalidParameter));
592throw new InvalidOperationException(SR.Format(SR.Error_ConstructorParametersDoNotMatchProperties, type, nameOfInvalidParameters));
614throw new InvalidOperationException(SR.Format(SR.Error_FailedToActivate, type), ex);
617return instance ?? throw new InvalidOperationException(SR.Format(SR.Error_FailedToActivate, type));
794throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding,
833throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding,
850throw new InvalidOperationException(SR.Format(SR.Error_UnsupportedMultidimensionalArray, type));
889throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding,
960throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding,
1003error = new InvalidOperationException(SR.Format(SR.Error_FailedBinding, value, path, type), ex);
1019error = new InvalidOperationException(SR.Format(SR.Error_FailedBinding, value, path, type), ex);
1136throw new InvalidOperationException(SR.Format(SR.Error_ParameterBeingBoundToIsUnnamed, type));
1156throw new InvalidOperationException(SR.Format(SR.Error_ParameterHasNoMatchingConfig, type, parameterName));
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
Microsoft.Extensions.Configuration.UserSecrets (3)
Microsoft.Extensions.DependencyInjection (18)
Microsoft.Extensions.DependencyInjection.Abstractions (17)
ActivatorUtilities.cs (11)
56throw new InvalidOperationException(SR.CannotCreateAbstractClasses);
162throw new InvalidOperationException(SR.Format(SR.MultipleCtorsFoundWithBestLength, instanceType, bestLength));
389throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, type, requiredBy));
569throw new InvalidOperationException(SR.Format(SR.CtorNotLocated, instanceType));
607throw new InvalidOperationException(SR.Format(SR.MultipleCtorsFound, instanceType));
763throw new InvalidOperationException(SR.KeyedServicesNotSupported);
783throw new InvalidOperationException(SR.KeyedServicesNotSupported);
864throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, _constructor.Parameters[index].ParameterType, _constructor.Info.DeclaringType));
908throw new InvalidOperationException(SR.Format(SR.MultipleCtorsMarkedWithAttribute, nameof(ActivatorUtilitiesConstructorAttribute)));
913throw new InvalidOperationException(SR.Format(SR.MarkedCtorMissingArgumentTypes, nameof(ActivatorUtilitiesConstructorAttribute)));
1216throw new InvalidOperationException(SR.KeyedServicesNotSupported);
Microsoft.Extensions.DependencyInjection.AutoActivation (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 (9)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (14)
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 (5)
Microsoft.Extensions.Identity.Core (14)
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 (3)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (11)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (2)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.Telemetry (11)
Microsoft.Extensions.Telemetry.Abstractions (2)
Microsoft.Extensions.Telemetry.Tests (10)
Microsoft.Extensions.TimeProvider.Testing (2)
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
Microsoft.Extensions.Validation (4)
Microsoft.Extensions.Validation.GeneratorTests (7)
Microsoft.Extensions.Validation.Tests (1)
Microsoft.Extensions.Validation.ValidationsGenerator (2)
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 (3)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (11)
Microsoft.JSInterop (4)
Microsoft.JSInterop.Tests (1)
Microsoft.Maui (44)
Converters\FlexEnumsConverters.cs (7)
36 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexJustify)));
71 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexDirection)));
110 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexAlignContent)));
145 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexAlignItems)));
180 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexAlignSelf)));
213 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexWrap)));
255 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexBasis)));
Microsoft.Maui.Controls (147)
Microsoft.Maui.Controls.BindingSourceGen (1)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.Xaml (4)
Microsoft.Maui.Essentials (7)
Microsoft.Maui.Graphics (7)
Microsoft.Maui.Graphics.Skia (1)
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 (19)
Microsoft.ML.Tokenizers.Tests (6)
Microsoft.ML.TorchSharp (1)
Microsoft.Net.Http.Headers (1)
Microsoft.NET.StringTools (2)
Microsoft.NET.StringTools.net35 (1)
Microsoft.VisualBasic.Core (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.Implementation (17)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Microsoft.Web.Xdt.Extensions (1)
Mvc.RoutingWebSite (2)
MyFrontend (1)
ParameterEndToEnd.AppHost (1)
PresentationBuildTasks (26)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\TokenizerHelper.cs (8)
102throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperExtraDataEncountered, _charIndex, _str));
123throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperPrematureStringTermination, _str));
137throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperPrematureStringTermination, _str));
229throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperMissingEndQuote, _str));
240throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
260throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperExtraDataEncountered, _charIndex, _str));
278throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
297throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
PresentationCore (516)
PresentationFramework (890)
MS\Internal\Data\CollectionViewProxy.cs (13)
409throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "NewItemPlaceholderPosition"));
448throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
467throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitNew"));
484throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelNew"));
565throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "RemoveAt"));
581throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "Remove"));
605throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "EditItem"));
622throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitEdit"));
639throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelEdit"));
746throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
810throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveSorting", "CanChangeLiveSorting"));
833throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveFiltering", "CanChangeLiveFiltering"));
856throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveGrouping", "CanChangeLiveGrouping"));
MS\Internal\Data\PropertyPathWorker.cs (5)
1532_host?.ReportGetValueError(k, item, new InvalidOperationException(SR.Format(SR.NonCLSException, "GetValue")));
1581throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pi.Name));
1586throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pd.Name));
1591throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), dp.Name));
1596throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), dpa.PropertyName));
System\Windows\Controls\ItemCollection.cs (15)
246throw new InvalidOperationException(SR.ItemsSourceInUse);
335throw new InvalidOperationException(SR.ItemCollectionHasNoCollection);
887throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "NewItemPlaceholderPosition"));
926throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
945throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitNew"));
962throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelNew"));
1043throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "RemoveAt"));
1059throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "Remove"));
1083throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "EditItem"));
1100throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitEdit"));
1117throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelEdit"));
1224throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
1497throw new InvalidOperationException(SR.CannotUseItemsSource);
1932throw new InvalidOperationException(SR.ItemsSourceInUse);
1975throw new InvalidOperationException(SR.NoCheckOrChangeWhenDeferred);
System\Windows\Data\BindingListCollectionView.cs (22)
306throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "CustomFilter"));
369throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "GroupBySelector"));
429throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "NewItemPlaceholderPosition", "AddNew"));
569throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
649throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitNew", "EditItem"));
696throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelNew", "EditItem"));
872throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "RemoveAt"));
884throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Remove"));
897throw new InvalidOperationException(SR.RemovingPlaceholder);
980throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitEdit", "AddNew"));
1019throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelEdit", "AddNew"));
1033throw new InvalidOperationException(SR.CancelEditNotSupported);
1122set { throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveSorting", "CanChangeLiveSorting")); }
1134set { throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveFiltering", "CanChangeLiveFiltering")); }
1918throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
1930throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
1987throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
2170throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Sorting"));
2309throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
2319throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
2451throw new InvalidOperationException(SR.CannotMoveToUnknownPosition);
2516throw new InvalidOperationException(SR.BindingListCanOnlySortByOneProperty);
System\Windows\Data\ListCollectionView.cs (21)
437throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Filter"));
461throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "CustomSort"));
483throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
542throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "NewItemPlaceholderPosition", "AddNew"));
716throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
739throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
825throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitNew", "EditItem"));
941throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelNew", "EditItem"));
1050throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "RemoveAt"));
1062throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Remove"));
1075throw new InvalidOperationException(SR.RemovingPlaceholder);
1177throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitEdit", "AddNew"));
1285throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelEdit", "AddNew"));
1299throw new InvalidOperationException(SR.CancelEditNotSupported);
2518throw new InvalidOperationException(SR.CannotMoveToUnknownPosition);
2669throw new InvalidOperationException(SR.Format(SR.CollectionChangeIndexOutOfRange, index, ilFull.Count));
2676throw new InvalidOperationException(SR.Format(SR.AddedItemNotAtIndex, index));
2683throw new InvalidOperationException(SR.AddedItemNotInCollection);
2909throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Sorting"));
3002throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
3012throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
System\Windows\Data\XmlNamespaceMapping.cs (6)
46throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Prefix", this.GetType().Name));
48throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Prefix", this.GetType().Name));
65throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Uri", this.GetType().Name));
67throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Uri", this.GetType().Name));
137throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Prefix", this.GetType().Name));
141throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Uri", this.GetType().Name));
System\Windows\FrameworkElementFactory.cs (21)
72throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
77throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
116throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
121throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
140throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
160throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
172throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
199throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
277throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
302throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
338throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
544throw new InvalidOperationException(SR.NullTypeIllegal);
553throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild, _type.Name));
564throw new InvalidOperationException(SR.Format(SR.ChildNameNamePatternReserved, _childName));
650throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
905throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
923throw new InvalidOperationException(SR.FrameworkElementFactoryMustBeSealed);
951throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
1111throw new InvalidOperationException(SR.Format(SR.AlreadyHasLogicalChildren,
1119throw new InvalidOperationException(SR.Format(SR.CannotHookupFCERoot,
1183throw new InvalidOperationException(SR.Format(SR.MissingContentSource, prefix, targetType));
System\Windows\Markup\BamlReader.cs (14)
316throw new InvalidOperationException(SR.BamlReaderClosed);
657throw new InvalidOperationException(SR.Format(SR.ParserUnknownBaml,
990throw new InvalidOperationException(SR.Format(SR.BamlReaderNoOwnerType, attrInfo.Name, AssemblyName));
1026throw new InvalidOperationException(SR.Format(SR.ParserCantGetDPOrPi, info.Name));
1678throw new InvalidOperationException(SR.Format(SR.ParserUnknownBaml,
1793throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty));
1807throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty));
1851throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
1889throw new InvalidOperationException(SR.ParserMapPIMissingAssembly);
2036throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2143throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2250throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2391throw new InvalidOperationException(SR.BamlBadExtensionValue);
2471throw new InvalidOperationException(SR.BamlBadExtensionValue);
System\Windows\Media\Animation\Storyboard.cs (28)
270throw new InvalidOperationException(
276throw new InvalidOperationException(
283throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetNameNotDependencyObject, targetName ));
318throw new InvalidOperationException(
327throw new InvalidOperationException(
336throw new InvalidOperationException(
342throw new InvalidOperationException(
350throw new InvalidOperationException(SR.Format(SR.Storyboard_BeginStoryboardNameNotFound, targetName));
397throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetNameNotAllowedInStyle, nameString));
445throw new InvalidOperationException(SR.Format(SR.Storyboard_NoTarget, currentTimeline.GetType().ToString() ));
453throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetPropertyRequired, currentTimeline.GetType().ToString() ));
463throw new InvalidOperationException(SR.Storyboard_PropertyPathEmpty);
476throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyProperty, currentPropertyPath.Path ));
542throw new InvalidOperationException(SR.Format(SR.Storyboard_MediaElementNotFound, currentObjectName ));
556throw new InvalidOperationException(SR.Storyboard_MediaElementRequired);
690throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathObjectNotFound, AccessorName(path, i-1), path.Path ));
697throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathPropertyNotFound, path.Path ));
724throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathFrozenCheckFailed, AccessorName(path, i-1), path.Path, intermediateFreezable.GetType().ToString() ));
730throw new InvalidOperationException(SR.Format(SR.Storyboard_ImmutableTargetNotSupported, path.Path));
745throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyObject, AccessorName(path, i-1), path.Path));
750throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyProperty, path.Path ));
755throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathSealedCheckFailed, intermediateDP.Name, path.Path, intermediateDO));
760throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathIncludesNonAnimatableProperty, path.Path, intermediateDP.Name));
796throw new InvalidOperationException(SR.Format(SR.Storyboard_AnimationMismatch, animationClock.Timeline.GetType(), targetProperty.Name, targetProperty.PropertyType));
843throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathUnresolved, path.Path));
874throw new InvalidOperationException(SR.Format(SR.Storyboard_ImmutableTargetNotSupported, path.Path));
945throw new InvalidOperationException(SR.Format(SR.Storyboard_ComplexPathNotSupported, targetObject.GetType().ToString()));
1947throw new InvalidOperationException(SR.Storyboard_NeverApplied);
System\Windows\PropertyPath.cs (9)
79throw new InvalidOperationException(); // This is actually never called since CurrentDispatcher will throw if null.
375throw new InvalidOperationException(SR.Format(SR.PropertyPathSyntaxError, detail));
560throw new InvalidOperationException(SR.Format(SR.PropertyPathInvalidAccessor,
566throw new InvalidOperationException(SR.Format(SR.PathParametersIndexOutOfRange, index, PathParameters.Count));
583throw new InvalidOperationException(SR.Format(SR.PropertyPathNoOwnerType, ownerName));
643throw new InvalidOperationException(SR.Format(SR.PropertyPathNoProperty, ownerType.Name, propertyName));
732throw new InvalidOperationException(SR.Format(SR.PathParameterIsNull, index));
736throw new InvalidOperationException(SR.Format(SR.PathParametersIndexOutOfRange, index, PathParameters.Count));
760throw new InvalidOperationException(SR.Format(SR.PropertyPathIndexWrongType, paramList[i].parenString, paramList[i].valueString));
System\Windows\Style.cs (12)
158throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
197throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
304throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
469throw new InvalidOperationException(SR.Format(SR.StyleTargetTypeMismatchWithElement,
493throw new InvalidOperationException(SR.Format(SR.NullPropertyIllegal, "TargetType"));
501throw new InvalidOperationException(SR.Format(SR.MustBaseOnStyleOfABaseType, _targetType.Name));
577throw new InvalidOperationException(SR.Format(
630throw new InvalidOperationException(SR.Format(SR.SetterOnStyleNotAllowedToHaveTarget, setter.TargetName));
734throw new InvalidOperationException(SR.StyleTriggersCannotTargetTheTemplate);
742throw new InvalidOperationException(SR.Format(SR.TriggerOnStyleNotAllowedToHaveSource, conditions[k].SourceName));
786throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInStyle, trigger.GetType().Name));
796throw new InvalidOperationException(SR.Format(SR.EventTriggerOnStyleNotAllowedToHaveTarget, eventTrigger.SourceName));
System\Windows\StyleHelper.cs (18)
109throw new InvalidOperationException(SR.CannotHaveOverridesDefaultStyleInThemeStyle);
115throw new InvalidOperationException(SR.CannotHaveEventHandlersInThemeStyle);
228throw new InvalidOperationException(SR.Format(
431throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name));
438throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name));
445throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name));
452throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name));
459throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name));
496throw new InvalidOperationException(SR.Format(SR.NameNotFound, propertyValue.ChildName));
551throw new InvalidOperationException(SR.MissingTriggerProperty);
982throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInTemplate, triggerBase.GetType().Name));
999throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInTemplate, triggerBase.GetType().Name));
1087throw new InvalidOperationException(SR.Format(SR.EventTriggerTargetNameUnresolvable, eventTrigger.SourceName));
1596throw new InvalidOperationException(SR.Format(SR.CrossThreadAccessOfUnshareableFreezable, freezable.GetType().FullName));
2079throw new InvalidOperationException(
2334throw new InvalidOperationException(SR.Format(SR.MustBeFrameworkDerived, d.GetType()));
4086throw new InvalidOperationException(SR.ChildTemplateInstanceDoesNotExist);
5323throw new InvalidOperationException(SR.StyleHasTooManyElements);
PresentationUI (23)
ReachFramework (24)
Replay (7)
Roslyn.Diagnostics.Analyzers (60)
Roslyn.Diagnostics.CSharp.Analyzers (11)
Roslyn.Test.PdbUtilities (1)
Roslyn.Test.Performance.Utilities (1)
Roslyn.VisualStudio.Next.UnitTests (1)
RoutingSandbox (1)
RoutingWebSite (1)
RunTests (4)
SemanticSearch.BuildTask (3)
ServerComparison.TestSites (1)
Shared (10)
SignalR.Client.FunctionalTestApp (2)
SimpleWebSiteWithWebApplicationBuilderException (1)
SocialSample (1)
Sockets.BindTests (3)
Sockets.FunctionalTests (3)
StaticFilesAuth (2)
Swaggatherer (1)
System.CodeDom (13)
System.Collections (35)
System.Collections.Concurrent (14)
System.Collections.Immutable (36)
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)
3460if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3462if (attrs == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes"));
3483if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3505if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3526if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3528if (converter == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3548if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3550if (converter == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3571if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3591if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3613if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3633if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3635if (events == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
3654if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptorFromRegisteredType"));
3656if (events == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEventsFromRegisteredType"));
3681if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3683if (evts == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
3703if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3705if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3724if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3726if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3751if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3753if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3775if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3823throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3826throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes"));
3850throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3875throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3901throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3904throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3928throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3931throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverterFromRegisteredType"));
3956throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3982throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4010throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4035throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4038throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
4062throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptorFromRegisteredType"));
4065throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEventsFromRegisteredType"));
4090throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4093throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
4118throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4122throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
4146throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4151throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetPropertiesFromRegisteredType"));
4176throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4179throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
4203throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4227throw new InvalidOperationException(SR.Format(SR.TypeIsNotRegistered, type.FullName));
System.Composition.Hosting (1)
System.Composition.TypedParts (1)
System.Configuration.ConfigurationManager (29)
System.Console (13)
System.Data.Common (23)
System.Data.Odbc (2)
System.Diagnostics.DiagnosticSource (17)
System.Diagnostics.Process (36)
System.DirectoryServices.Protocols (3)
System.Drawing.Common (8)
System.Drawing.Common.Tests (3)
System.Formats.Asn1 (24)
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 (27)
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 (305)
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 (16)
System.Private.Windows.Core.TestUtilities (15)
System.Private.Windows.GdiPlus (4)
System.Private.Xml (568)
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));
598throw new InvalidOperationException(SR.Format(SR.XmlHiddenMember, parent, member.Name, member.TypeDesc!.FullName, this.TypeName, _members[i].Name, _members[i].TypeDesc!.FullName));
601throw new InvalidOperationException(SR.Format(SR.XmlInvalidXmlOverride, parent, member.Name, this.TypeName, _members[i].Name));
625throw new InvalidOperationException(SR.Format(SR.XmlIllegalSimpleContentExtension, TypeDesc!.FullName, BaseMapping.TypeDesc.FullName));
638throw new InvalidOperationException(SR.Format(SR.XmlIllegalTypedTextAttribute, TypeDesc!.FullName, text.Name, text.Mapping.TypeDesc.FullName));
1107throw new InvalidOperationException(SR.Format(SR.XmlCircularDerivation, TypeDesc!.FullName));
1232throw new InvalidOperationException(SR.Format(SR.XmlSerializableSchemaError, nameof(IXmlSerializable), args.Message));
1265throw new InvalidOperationException(SR.Format(SR.XmlSerializableRootDupName, _getSchemaMethod!.DeclaringType!.FullName, e.Name, elementNs));
1318throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaEmptyTypeName, _type!.FullName, _getSchemaMethod.Name));
1323throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, _type!.Name, _getSchemaMethod.Name, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName));
1347throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, _xsiType.Namespace));
1351throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaInclude, _xsiType.Namespace, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name));
1356throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, _xsiType.Namespace));
1361throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaTypeMissing, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name, _xsiType.Name, _xsiType.Namespace));
1374if (string.IsNullOrEmpty(_schema.Id)) throw new InvalidOperationException(SR.Format(SR.XmlSerializableNameMissing1, _type!.FullName));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (17)
585throw new InvalidOperationException(SR.XmlInternalError);
627throw new InvalidOperationException(SR.XmlInternalError);
643throw new InvalidOperationException(SR.XmlInternalError);
671throw new InvalidOperationException(SR.XmlInternalError);
692throw new InvalidOperationException(SR.XmlInternalError);
926throw new InvalidOperationException(SR.XmlInternalError);
998throw new InvalidOperationException(SR.XmlInternalError);
1003throw new InvalidOperationException(SR.XmlInternalError);
1064throw new InvalidOperationException(SR.XmlInternalError);
1109throw new InvalidOperationException(SR.XmlInternalError);
1210_ => throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}")),
1220throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"unknown FormatterName: {mapping.TypeDesc.FormatterName}"));
1495throw new InvalidOperationException(SR.XmlInternalError);
1629throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order"));
1665member.Source = (value) => throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, pi.Name, pi.DeclaringType!.FullName));
1684throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, pi.Name, pi.DeclaringType!.FullName));
1980throw new InvalidOperationException(SR.XmlInternalError);
System\Xml\Serialization\SoapReflectionImporter.cs (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));
1082throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, propertyInfo.DeclaringType, propertyInfo.Name));
1320throw new InvalidOperationException(SR.Format(SR.XmlNoAddMethod, type.FullName, currentType, "IEnumerable"));
1371throw new InvalidOperationException(SR.Format(SR.XmlNoDefaultAccessors, type.FullName));
1376throw new InvalidOperationException(SR.Format(SR.XmlNoAddMethod, type.FullName, indexer.PropertyType, "ICollection"));
1406throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeSyntax, type));
System\Xml\Serialization\XmlReflectionImporter.cs (98)
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"));
878throw new InvalidOperationException(SR.Format(SR.XmlIllegalTypedTextAttribute, typeName, member.Text.Name, member.Text.Mapping.TypeDesc.FullName));
881throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, model.Type.FullName));
888throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName));
919throw new InvalidOperationException(SR.Format(SR.XmlSequenceUnique, member.SequenceId.ToString(CultureInfo.InvariantCulture), "Order", member.Name));
925throw new InvalidOperationException(SR.Format(SR.XmlSequenceInconsistent, "Order", member.Name));
935throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName));
1176throw new InvalidOperationException(SR.Format(SR.XmlUdeclaredXsdType, dataType));
1211throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttributeFlagsArray, model.TypeDesc.FullName));
1226throw new InvalidOperationException(SR.Format(SR.XmlNoSerializableMembers, model.TypeDesc.FullName));
1239throw new InvalidOperationException(SR.XmlInvalidConstantAttribute);
1272throw new InvalidOperationException(SR.XmlRpcLitAttributeAttributes);
1276throw new InvalidOperationException(SR.Format(SR.XmlInvalidAttributeType, "XmlAttribute"));
1282if (i > 0) throw new InvalidOperationException(SR.XmlInvalidReturnPosition);
1298throw new InvalidOperationException(SR.XmlIllegalMultipleTextMembers);
1306throw new InvalidOperationException(SR.XmlMultipleXmlnsMembers);
1321throw new InvalidOperationException(SR.Format(SR.XmlSequenceMembers, "Order"));
1438throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierType, identifierName, memberName, type.GetElementType()!.FullName));
1445throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierArrayType, identifierName, memberName, type.FullName));
1451throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierTypeEnum, identifierName));
1466throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1483throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1490throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierAmbiguous, choice.MemberName));
1497throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1580throw new InvalidOperationException(SR.XmlIllegalAttributesArrayAttribute);
1586throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName, nameof(IXmlSerializable)));
1590throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName));
1627throw new InvalidOperationException(SR.XmlIllegalElementsArrayAttribute);
1637throw new InvalidOperationException(SR.Format(SR.XmlIllegalArrayTextAttribute, accessorName));
1665throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1678throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1690throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, arrayElementType.FullName));
1701throw new InvalidOperationException(SR.Format(SR.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace ?? "null"));
1728throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1738throw new InvalidOperationException(SR.XmlIllegalArrayArrayAttribute);
1772throw new InvalidOperationException(SR.XmlIllegalAttribute);
1776if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, accessor.TypeDesc.FullName));
1780if (a.XmlElements.Count > 0) throw new InvalidOperationException(SR.XmlIllegalAttribute);
1781if (a.XmlAttribute.Type != null) throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlAttribute"));
1807throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlText"));
1824throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlElement"));
1838throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1851throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1862throw new InvalidOperationException(SR.XmlSoleXmlnsAttribute);
1866throw new InvalidOperationException(SR.Format(SR.XmlXmlnsInvalidType, accessorName, accessorType.FullName, typeof(System.Xml.Serialization.XmlSerializerNamespaces).FullName));
1877throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.FullName, nameof(IXmlSerializable)));
1881throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc));
1906throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1919throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1931throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, accessorType.FullName));
1943throw new InvalidOperationException(SR.Format(SR.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace ?? "null"));
1968throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1982throw new InvalidOperationException(SR.Format(SR.XmlRpcLitArrayElement, accessor.Elements[0].Name));
1985throw new InvalidOperationException(SR.Format(SR.XmlRpcLitXmlns, accessor.Name));
2031throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, accessor.ChoiceIdentifier.Mapping!.TypeDesc!.FullName));
2037throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping!.TypeDesc!.FullName, id, element.Name, element.Namespace));
2053throw new InvalidOperationException(SR.XmlRpcLitAttributeAttributes);
2056throw new InvalidOperationException(SR.XmlRpcLitAttributes);
2062throw new InvalidOperationException(SR.XmlRpcLitElements);
2067throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", xmlElement.Namespace));
2071throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNullable, "IsNullable", "true"));
2076throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", a.XmlArray.Namespace));
2093throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2104throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2119throw new InvalidOperationException(SR.Format(SR.XmlArrayItemAmbiguousTypes, accessorName, item.ElementName, items[i]!.ElementName, nameof(XmlElementAttribute), nameof(XmlChoiceIdentifierAttribute), accessorName));
2142throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdDuplicate, choiceMapping.TypeName, choiceId));
2163throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, strValue, a.XmlDefaultValue.GetType().FullName));
2196throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementName, existing.Name, existing.Namespace));
2202throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Bad accessor type " + accessor.GetType().FullName));
2204throw new InvalidOperationException(SR.Format(SR.XmlDuplicateAttributeName, existing.Name, existing.Namespace));
2238throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"The XML attribute/element '{accessor.Namespace}{accessor.Name}' does not have an existing accessor to remove."));
2260if (isQualified && form == XmlSchemaForm.Unqualified) throw new InvalidOperationException(SR.XmlInvalidFormUnqualified);
2267if (isNullable && !typeDesc.IsNullable) throw new InvalidOperationException(SR.Format(SR.XmlInvalidIsNullable, typeDesc.FullName));
System\Xml\Serialization\XmlSchemaExporter.cs (24)
79throw new InvalidOperationException(SR.Format(SR.XmlBareAttributeMember, member.Attribute.Name));
81throw new InvalidOperationException(SR.Format(SR.XmlBareTextMember, member.Text.Name));
86throw new InvalidOperationException(SR.Format(SR.XmlIllegalArrayElement, member.Elements[0].Name));
225throw new InvalidOperationException(SR.XmlMappingsScopeMismatch);
236throw new InvalidOperationException(SR.XmlIllegalWildcard);
261throw new InvalidOperationException(SR.Format(SR.XmlDuplicateTypeName, newTypeName, newNamespace));
287throw new InvalidOperationException(SR.Format(SR.XmlIllegalForm, e.Name));
293throw new InvalidOperationException(SR.Format(SR.XmlIllegalForm, a.Name));
511throw new InvalidOperationException(SR.Format(SR.XmlDuplicateNamespace, anyNs));
562throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, $"Unsupported anonymous mapping type: {mapping}"));
619throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Type " + mapping.TypeName + " from namespace '" + ns + "' is an invalid array mapping"));
681throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name));
792throw new InvalidOperationException(SR.XmlInternalError);
876if (value.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, SR.Format(SR.XmlInvalidDefaultValue, value, value.GetType().FullName)));
916throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Mapping for " + pm.TypeDesc.Name + " missing type property"));
932throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, value, pm.TypeDesc.Name));
935throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, value, pm.TypeDesc.Name));
969throw new InvalidOperationException(SR.Format(SR.XmlCircularReference2, mapping.TypeDesc.Name, "AnonymousType", "false"));
975if (!mapping.IncludeInSchema) throw new InvalidOperationException(SR.Format(SR.XmlCannotIncludeInSchema, mapping.TypeDesc.Name));
990throw new InvalidOperationException(SR.Format(SR.XmlAnonymousBaseType, mapping.TypeDesc.Name, mapping.BaseMapping.TypeDesc!.Name, "AnonymousType", "false"));
1051throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, name));
1074throw new InvalidOperationException(SR.Format(SR.XmlInvalidContent, type.ContentModel.Content!.GetType().Name));
1096throw new InvalidOperationException(SR.Format(SR.XmlAnonymousBaseType, textMapping.TypeDesc!.Name, pm.TypeDesc!.Name, "AnonymousType", "false"));
1143if (!mapping.IncludeInSchema) throw new InvalidOperationException(SR.Format(SR.XmlCannotIncludeInSchema, mapping.TypeDesc!.Name));
System\Xml\Serialization\XmlSchemaImporter.cs (17)
71throw new InvalidOperationException(SR.Format(SR.XmlBadBaseElement, name.Name, name.Namespace, baseType.FullName));
124throw new InvalidOperationException(SR.Format(SR.XmlBadBaseType, typeName.Name, typeName.Namespace, baseType.FullName));
285throw new InvalidOperationException(SR.Format(SR.XmlElementHasNoName, parentType.Name, parentType.Namespace));
365throw new InvalidOperationException(SR.Format(SR.XmlElementImportedTwice, element.Name, ns, mapping.GetType().Name, desiredMappingType.Name));
434throw new InvalidOperationException(SR.XmlInternalError);
481if (!type.DerivedFrom.IsEmpty) throw new InvalidOperationException(SR.XmlMembersDeriveError);
544throw new InvalidOperationException(SR.Format(SR.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace));
591throw new InvalidOperationException(SR.Format(SR.XmlIllegalOverride, type.Name, baseMember.Name, baseMember.TypeDesc!.FullName, structMapping.Members[i].TypeDesc!.FullName, declaringMapping!.TypeDesc!.FullName));
993throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementInScope, element.Name, element.Namespace));
997throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementInScope1, element.Name, element.Namespace));
1614if (attribute.Name!.Length == 0) throw new InvalidOperationException(SR.XmlAttributeHasNoName);
1859throw new InvalidOperationException(SR.Format(SR.XmlMissingGroup, name.Name));
1868throw new InvalidOperationException(SR.Format(SR.XmlMissingAttributeGroup, name.Name));
1936throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncoding, name));
1940throw new InvalidOperationException(SR.Format(SR.XmlMissingDataType, name));
1966throw new InvalidOperationException(SR.Format(SR.XmlMissingElement, name));
1974throw new InvalidOperationException(SR.Format(SR.XmlMissingAttribute, name.Name));
System\Xml\Serialization\XmlSchemas.cs (7)
47throw new InvalidOperationException(SR.Format(SR.XmlSchemaDuplicateNamespace, ns));
171if (_isCompiled) throw new InvalidOperationException(SR.XmlSchemaCompiled);
260throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "XmlSchemas.Find: Invalid object type " + type.FullName));
393throw new InvalidOperationException(SR.Format(SR.XmlSchemaIncludeLocation, this.GetType().Name, external.SchemaLocation));
415throw new InvalidOperationException(MergeFailedMessage(o, dest, schema.TargetNamespace));
694throw new InvalidOperationException(GetSchemaItem(source, null, message), exception);
710throw 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()));
2458if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
2825if (enumMethodName == null) throw new InvalidOperationException(SR.Format(SR.XmlMissingMethodEnum, mapping.TypeDesc!.Name));
3069if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc!.Name));
3106if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, enumMapping.TypeDesc!.Name));
3343throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order"));
3821throw new InvalidOperationException(SR.XmlInternalError);
4084throw new InvalidOperationException(SR.XmlInternalError);
4634if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, element.Mapping.TypeDesc!.Name));
4781if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.Name));
4860throw new InvalidOperationException(SR.XmlInternalError);
4865throw new InvalidOperationException(SR.XmlInternalError);
4871if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "need parent for the " + source));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (12)
368if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
684if (enumMethodName == null) throw new InvalidOperationException(SR.Format(SR.XmlMissingMethodEnum, mapping.TypeDesc!.Name));
1141if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc!.Name));
1196if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, enumMapping.TypeDesc!.Name));
1567throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order"));
2062throw new InvalidOperationException(SR.XmlInternalError);
2350throw new InvalidOperationException(SR.XmlInternalError);
2978if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, element.Mapping.TypeDesc!.Name));
3127if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.Name));
3245throw new InvalidOperationException(SR.XmlInternalError);
3250throw new InvalidOperationException(SR.XmlInternalError);
3256if (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));
416throw new InvalidOperationException(SR.XmlGenError, e);
493throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncodingNotEncoded1, encodingStyle));
519throw new InvalidOperationException(SR.Format(SR.XmlSerializeErrorDetails, lineInfo.LineNumber.ToString(CultureInfo.InvariantCulture), lineInfo.LinePosition.ToString(CultureInfo.InvariantCulture)), e);
523throw new InvalidOperationException(SR.XmlSerializeError, e);
675throw new InvalidOperationException(SR.XmlMelformMapping);
684throw new InvalidOperationException(SR.Format(SR.XmlPregenTypeDynamic, type.FullName));
931throw new InvalidOperationException(SR.Format(SR.XmlUnxpectedType, _primitiveType!.FullName));
1013throw new InvalidOperationException(SR.Format(SR.XmlUnxpectedType, _primitiveType!.FullName));
System.Private.Xml.Linq (56)
System.Reflection.Context (12)
System.Reflection.Emit (33)
System.Reflection.Metadata (25)
System.Reflection.MetadataLoadContext (112)
System\Reflection\TypeLoading\Properties\RoProperty.cs (7)
155throw new InvalidOperationException(SR.Arg_EnumLitValueNotFound);
166public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
167public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
168public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
169public sealed override object GetConstantValue() => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
170public sealed override object GetValue(object? obj, BindingFlags invokeAttr, Binder? binder, object?[]? index, CultureInfo? culture) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
171public 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 (69)
System.Security.Cryptography.Cose (37)
System.Security.Cryptography.Pkcs (41)
System.ServiceModel.Federation (14)
System.ServiceModel.Http (22)
System.ServiceModel.NetFramingBase (17)
System.ServiceModel.NetTcp (3)
System.ServiceModel.Primitives (456)
System\ServiceModel\Channels\ChannelRequirements.cs (9)
236exception = new InvalidOperationException(SRP.Format(SRP.EndpointListenerRequirementsCannotBeMetBy3,
254exception = new InvalidOperationException(SRP.Format(SRP.CouldnTCreateChannelForType2, bindingName, contractChannelTypesString));
349return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportAnyChannelTypes1, bindingName));
353return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportSessionButContractRequires1, bindingName));
357return new InvalidOperationException(SRP.Format(SRP.BindingDoesntSupportDatagramButContractRequires, bindingName));
361return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportDuplexButContractRequires1, bindingName));
365return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportRequestReplyButContract1, bindingName));
369return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportOneWayButContractRequires1, bindingName));
373return new InvalidOperationException(SRP.Format(SRP.BindingDoesnTSupportTwoWayButContractRequires1, bindingName));
System\ServiceModel\Channels\Message.cs (21)
99throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenCopied), this);
101throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenRead), this);
103throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenWritten), this);
106throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.InvalidMessageState), this);
350throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageIsEmpty), this);
364throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenCopied), this);
366throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenRead), this);
368throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenWritten), this);
373throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.InvalidMessageState), this);
380Headers.RelatesTo = requestMessageID ?? throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.RequestMessageDoesNotHaveAMessageID), request);
597throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenCopied), this);
599throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenRead), this);
601throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenWritten), this);
606throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.InvalidMessageState), this);
750throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenCopied), this);
752throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenRead), this);
754throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.MessageHasBeenWritten), this);
759throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRP.InvalidMessageState), this);
853throw TraceUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix.")), this);
860throw TraceUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix.")), this);
1264throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MessageBodyReaderInvalidReadState, bodyReader.ReadState.ToString())));
System\ServiceModel\Description\ServiceReflector.cs (20)
151throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Cannot generate unique name for name {0}", baseName)));
425throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxContractInheritanceRequiresInterfaces2, service, t)));
432throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ServicesWithoutAServiceContractAttributeCan2, operationContractProviderType.Name, method.Name, service.FullName)));
442throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxContractInheritanceRequiresInterfaces, service, t)));
524throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
529throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
538throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
543throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
574throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.tooManyAttributesOfTypeOn2, attrType, attrProvider.ToString())));
587throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.couldnTFindRequiredAttributeOfTypeOn2, typeof(T), attrProvider.ToString())));
607throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxDisallowedAttributeCombination, attrProvider, attrType.FullName, otherType.FullName)));
619throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.couldnTFindRequiredAttributeOfTypeOn2, typeof(T), attrProvider.ToString())));
640throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.AttemptedToGetContractTypeForButThatTypeIs1, interfaceType.Name)));
660throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
703new InvalidOperationException(SRP.Format(SRP.SFxBadByValueParameterMetadata,
712new InvalidOperationException(SRP.Format(SRP.SFxBadByReferenceParameterMetadata,
830throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.NoEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName)));
834throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MoreThanOneEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName)));
845throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidAsyncEndMethodSignatureForMethod2, endMethod.Name, endMethod.DeclaringType.FullName)));
878throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidAsyncBeginMethodSignatureForMethod2, method.Name, method.DeclaringType.FullName)));
System\ServiceModel\Description\TypeLoader.cs (50)
111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(
148throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(
379throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeAttributeUnknownMethod3, provider, knownTypeAttribute.MethodName, type.FullName)));
384throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeAttributeReturnType3, provider, knownTypeAttribute.MethodName, type.FullName)));
397throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeAttributeInvalid1, provider.ToString())));
479new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Attributes6,
490new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Attributes6,
500new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Attributes6,
695throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
737throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
743throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
795throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
871throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
895throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface)));
901throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface)));
907throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface)));
991throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.OneWayAndFaultsIncompatible2, methodInfo.DeclaringType.FullName, operationName.EncodedName)));
1074throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ServiceOperationsMarkedWithIsOneWayTrueMust0));
1079throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.OneWayOperationShouldNotSpecifyAReplyAction1, operationName)));
1105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
1111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMultipleUnknownHeaders, methodInfo, methodInfo.DeclaringType)));
1243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidMessageContractSignature, methodName)));
1248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidMessageContractSignature, methodName)));
1329throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMessageContractBaseTypeNotValid, baseType, typedMessageType)));
1512throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidMessageHeaderArrayType, defaultName)));
1524throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxStaticMessageHeaderPropertiesNotAllowed, defaultName)));
1651new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Parameters5,
1667new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Parameters5,
1684new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Parameters5,
1699new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_ReturnType5,
1713new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Attributes6,
1728new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Attributes6,
1743new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Property6,
1760new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Property6,
1792new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Parameters5,
1807new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Parameters5,
1821new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_ReturnType5,
1834new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Attributes6,
1848new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Attributes6,
1862new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Property6,
1878new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Property6,
1909new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Parameters5,
1925new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Parameters5,
1940new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_ReturnType5,
1954new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Attributes6,
1969new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Attributes6,
1984new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Property6,
2001new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Property6,
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (16)
387throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeNull, Operation.Name)));
399throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxRpcMessageBodyPartNameInvalid, Operation.Name, Operation.Messages[0].MessageName, _request.BodyMapping.XsdElementName, Operation.Name)));
408throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxRpcMessageBodyPartNameInvalid, Operation.Name, Operation.Messages[1].MessageName, _reply.BodyMapping.XsdElementName, responseName.EncodedName)));
499throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxHeaderNameMismatchInMessageContract, message.MessageType, header.MemberInfo.Name, header.Name, headerName)));
503throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxHeaderNameMismatchInOperation, Operation.Name, Operation.DeclaringContract.Name, Operation.DeclaringContract.Namespace, header.Name, headerName)));
510throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxHeaderNamespaceMismatchInMessageContract, message.MessageType, header.MemberInfo.Name, header.Namespace, headerNs)));
514throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxHeaderNamespaceMismatchInOperation, Operation.Name, Operation.DeclaringContract.Name, Operation.DeclaringContract.Namespace, header.Namespace, headerNs)));
578throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxRpcMessageMustHaveASingleBody, Operation.Name, message.MessageName)));
585throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyObjectTypeCannotBeInherited, bodyObjectType.FullName)));
590throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyObjectTypeCannotBeInterface, bodyObjectType.FullName, typeof(IEnumerable).FullName)));
595throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyObjectTypeCannotBeInterface, bodyObjectType.FullName, typeof(IXmlSerializable).FullName)));
692throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxFaultTypeAnonymous, Operation.Name, fault.DetailType.FullName)));
1062throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMultiplePartsNotAllowedInEncoded, elementName.DecodedName, ns)));
1114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidSoapAttribute, invalidAttributeType, elementName.DecodedName)));
1163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(isWrapped ? SRP.SFxInvalidXmlAttributeInWrapped : SRP.SFxInvalidXmlAttributeInBare, invalidAttributeType, elementName.DecodedName)));
1168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxXmlArrayNotAllowedForMultiple, elementName.DecodedName, ns)));
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (22)
165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
199throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
282throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
324throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, nameof(EntropyToken))));
336throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, "IssuedToken")));
344throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
357throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, "ProofToken")));
365throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
378throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTROnly, "RequestSecurityTokenXml")));
390throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesTo))));
402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesToSerializer))));
414throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesToType))));
426throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, nameof(IsLifetimeSet))));
461throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
477throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
493throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTOnly, "MatchesAppliesTo")));
636throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTROnly, nameof(GetIssuedToken))));
System\ServiceModel\Security\SecurityUtils.cs (5)
851throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.CannotFindCert, storeName, storeLocation, findType, findValue)));
907return new InvalidOperationException(SRP.Format(SRP.CannotFindCert, storeName, storeLocation, findType, findValue));
909return new InvalidOperationException(SRP.Format(SRP.CannotFindCertForTarget, storeName, storeLocation, findType, findValue, target));
913return new InvalidOperationException(SRP.Format(SRP.FoundMultipleCerts, storeName, storeLocation, findType, findValue));
915return new InvalidOperationException(SRP.Format(SRP.FoundMultipleCertsForTarget, storeName, storeLocation, findType, findValue, target));
System\ServiceModel\Security\WSTrust.cs (16)
569throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.RstrHasMultipleIssuedTokens));
577throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.RstrHasMultipleProofTokens));
615throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BadIssuedTokenType, rstr.TokenType, expectedTokenType)));
633throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.NoLicenseXml));
640throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.BearerKeyTypeCannotHaveProofKey));
652throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresRequestorEntropy, keyEntropyMode)));
657throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveProofTokenOrIssuerEntropy, keyEntropyMode)));
665throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveRequestorEntropy, keyEntropyMode)));
669throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveComputedKey, keyEntropyMode)));
673throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresProofToken, keyEntropyMode)));
687throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresComputedKey, keyEntropyMode)));
691throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresIssuerEntropy, keyEntropyMode)));
695throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresRequestorEntropy, keyEntropyMode)));
699throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.RstrKeySizeNotProvided));
1260throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresRequestorEntropy, mode)));
1264throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveRequestorEntropy, mode)));
System.ServiceModel.Primitives.Tests (9)
System.ServiceModel.Syndication (11)
System.ServiceModel.UnixDomainSocket (1)
System.Text.Encoding.CodePages (1)
System.Text.Json (104)
System\Text\Json\ThrowHelper.Serialization.cs (59)
64throw new InvalidOperationException(SR.Format(SR.DeserializeUnableToAssignNull, declaredType));
88throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPopulateNotSupportedByConverter, propertyInfo.Name, propertyInfo.DeclaringType));
94throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyMustHaveAGetter, propertyInfo.Name, propertyInfo.DeclaringType));
100throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyValueTypeMustHaveASetter, propertyInfo.Name, propertyInfo.DeclaringType));
106throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyCannotAllowPolymorphicDeserialization, propertyInfo.Name, propertyInfo.DeclaringType));
112throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyCannotAllowReadOnlyMember, propertyInfo.Name, propertyInfo.DeclaringType));
118throw new InvalidOperationException(SR.ObjectCreationHandlingPropertyCannotAllowReferenceHandling);
170throw new InvalidOperationException(SR.Format(SR.CannotSerializeInvalidType, typeToConvert));
174throw new InvalidOperationException(SR.Format(SR.CannotSerializeInvalidMember, typeToConvert, memberInfo.Name, declaringType));
180throw new InvalidOperationException(SR.Format(SR.SerializationConverterNotCompatible, converterType, type));
186throw new InvalidOperationException(SR.Format(SR.ResolverTypeNotCompatible, actualType, requestedType));
192throw new InvalidOperationException(SR.ResolverTypeInfoOptionsNotCompatible);
198throw new InvalidOperationException(SR.JsonSerializerOptionsNoTypeInfoResolverSpecified);
204throw new InvalidOperationException(SR.JsonSerializerIsReflectionDisabled);
216throw new InvalidOperationException(SR.Format(SR.SerializationConverterOnAttributeInvalid, location));
229throw new InvalidOperationException(SR.Format(SR.SerializationConverterOnAttributeNotCompatible, location, typeToConvert));
239throw new InvalidOperationException(message);
245throw new InvalidOperationException(SR.DefaultTypeInfoResolverImmutable);
251throw new InvalidOperationException(SR.TypeInfoResolverChainImmutable);
257throw new InvalidOperationException(SR.TypeInfoImmutable);
263throw new InvalidOperationException(SR.SerializerOptions_InvalidChainedResolver);
269throw new InvalidOperationException(SR.Format(SR.SerializerPropertyNameConflict, type, propertyName));
275throw new InvalidOperationException(SR.Format(SR.SerializerPropertyNameNull, jsonPropertyInfo.DeclaringType, jsonPropertyInfo.MemberName));
281throw new InvalidOperationException(SR.Format(SR.JsonPropertyRequiredAndNotDeserializable, jsonPropertyInfo.Name, jsonPropertyInfo.DeclaringType));
287throw new InvalidOperationException(SR.Format(SR.JsonPropertyRequiredAndExtensionData, jsonPropertyInfo.Name, jsonPropertyInfo.DeclaringType));
369throw new InvalidOperationException(SR.Format(SR.NamingPolicyReturnNull, namingPolicy));
375throw new InvalidOperationException(SR.Format(SR.SerializerConverterFactoryReturnsNull, converterType));
381throw new InvalidOperationException(SR.Format(SR.SerializerConverterFactoryReturnsJsonConverterFactory, converterType));
391throw new InvalidOperationException(
403throw new InvalidOperationException(SR.Format(SR.ConstructorParamIncompleteBinding, parentType));
409throw new InvalidOperationException(SR.Format(SR.ExtensionDataCannotBindToCtorParam, propertyName, jsonPropertyInfo.DeclaringType));
415throw new InvalidOperationException(SR.Format(SR.JsonIncludeOnInaccessibleProperty, memberName, declaringType));
421throw new InvalidOperationException(SR.Format(SR.IgnoreConditionOnValueTypeInvalid, clrPropertyName, propertyDeclaringType));
428throw new InvalidOperationException(SR.Format(SR.NumberHandlingOnPropertyInvalid, jsonPropertyInfo.MemberName, jsonPropertyInfo.DeclaringType));
434throw new InvalidOperationException(SR.Format(SR.ConverterCanConvertMultipleTypes, jsonConverter.GetType(), jsonConverter.Type, runtimePropertyType));
454throw new InvalidOperationException(SR.Format(SR.InvalidJsonTypeInfoOperationForKind, kind));
460throw new InvalidOperationException(SR.Format(SR.OnDeserializingCallbacksNotSupported, type));
466throw new InvalidOperationException(SR.Format(SR.CreateObjectConverterNotCompatible, type));
567throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateAttribute, attribute, location));
573throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateTypeAttribute, classType, attribute));
579throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateTypeAttribute, classType, typeof(TAttribute)));
585throw new InvalidOperationException(SR.Format(SR.ExtensionDataConflictsWithUnmappedMemberHandling, classType, jsonPropertyInfo.MemberName));
591throw new InvalidOperationException(SR.Format(SR.SerializationDataExtensionPropertyInvalid, jsonPropertyInfo.PropertyType, jsonPropertyInfo.MemberName));
597throw new InvalidOperationException(SR.Format(SR.PropertyTypeNotNullable, jsonPropertyInfo.PropertyType));
603throw new InvalidOperationException(SR.NodeJsonObjectCustomConverterNotAllowedOnExtensionProperty);
824throw new InvalidOperationException(SR.Format(SR.MetadataReferenceOfTypeCannotBeAssignedToType, referenceId, currentType, typeToConvert));
831throw new InvalidOperationException(SR.Format(SR.JsonPropertyInfoBoundToDifferentParent, propertyInfo.Name, propertyInfo.DeclaringTypeInfo.Type.FullName));
872throw new InvalidOperationException(SR.Format(SR.NoMetadataForType, type, resolver?.ToString() ?? "<null>"));
877return new InvalidOperationException(SR.Format(SR.NoMetadataForTypeProperties, resolver?.ToString() ?? "<null>", type));
919throw new InvalidOperationException(SR.Format(SR.Polymorphism_TypeDoesNotSupportPolymorphism, baseType));
925throw new InvalidOperationException(SR.Format(SR.Polymorphism_DerivedTypeIsNotSupported, derivedType, baseType));
931throw new InvalidOperationException(SR.Format(SR.Polymorphism_DerivedTypeIsAlreadySpecified, baseType, derivedType));
937throw new InvalidOperationException(SR.Format(SR.Polymorphism_TypeDicriminatorIdIsAlreadySpecified, baseType, typeDiscriminator));
943throw new InvalidOperationException(SR.Polymorphism_InvalidCustomTypeDiscriminatorPropertyName);
949throw new InvalidOperationException(SR.Format(SR.Polymorphism_PropertyConflictsWithMetadataPropertyName, type, propertyName));
955throw new InvalidOperationException(SR.Format(SR.Polymorphism_ConfigurationDoesNotSpecifyDerivedTypes, baseType));
961throw new InvalidOperationException(SR.Format(SR.UnsupportedEnumIdentifier, enumType.Name, enumName));
991throw new InvalidOperationException(SR.Format(SR.PipeWriter_DoesNotImplementUnflushedBytes, pipeWriter.GetType().Name));
1003throw 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 (599)
System.Windows.Forms.Design (86)
System.Windows.Forms.Design.Tests (30)
System.Windows.Forms.IntegrationTests.Common (1)
System.Windows.Forms.Primitives (5)
System.Windows.Forms.Primitives.TestUtilities (2)
System.Windows.Forms.Tests (18)
System.Windows.Forms.UI.IntegrationTests (10)
System.Windows.Input.Manipulations (4)
System.Xaml (52)
System\Xaml\XamlXmlWriter.cs (11)
398throw new InvalidOperationException(SR.Format(SR.PrefixNotInFrames, prefix));
1041throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember"));
1048throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember"));
1092throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteEndObject"));
1251throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteValue"));
1288throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, value, containingXamlType.Name));
1387throw new InvalidOperationException(SR.XamlXmlWriterWriteObjectNotSupportedInCurrentState);
1399throw new InvalidOperationException(SR.XamlXmlWriterIsObjectFromMemberSetForArraysOrNonCollections);
1492throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, writer.deferredValue, containingXamlType.Name));
2040throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, operation));
2065throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteGetObject"));
Templates.Blazor.Tests (21)
Templates.Blazor.WebAssembly.Auth.Tests (27)
Templates.Blazor.WebAssembly.Tests (27)
Templates.Mvc.Tests (27)
Templates.Tests (27)
Test.Utilities (44)
TestingAppHost1.AppHost (4)
Text.Analyzers (56)
UIAutomationClient (41)
UIAutomationClientSideProviders (104)
UIAutomationTypes (1)
vbc (5)
VBCSCompiler (8)
VBCSCompiler.UnitTests (4)
VersioningWebSite (1)
VisualBasicRuntimeTest (7)
Wasm.Performance.ConsoleHost (1)
WebFrontEnd (1)
WindowsFormsIntegration (3)
WinFormsControlsTest (4)
XmlFormattersWebSite (1)
xunit.assert (7)
xunit.console (3)
5546 references to InvalidOperationException
Analyzer.Utilities.UnitTests (4)
Lightup\LightupHelpersTests.cs (4)
78Assert.ThrowsAny<InvalidOperationException>(() => LightupHelpers.CreateSyntaxPropertyAccessor<MethodDeclarationSyntax, BlockSyntax?>(typeof(BaseMethodDeclarationSyntax), nameof(BaseMethodDeclarationSyntax.Body), fallbackResult: null));
82Assert.ThrowsAny<InvalidOperationException>(() => LightupHelpers.CreateSyntaxPropertyAccessor<MethodDeclarationSyntax, BlockSyntax?>(typeof(MethodDeclarationSyntax), nameof(MethodDeclarationSyntax.ExpressionBody), fallbackResult: null));
90Assert.ThrowsAny<InvalidOperationException>(() => LightupHelpers.CreateSyntaxWithPropertyAccessor<MethodDeclarationSyntax, BlockSyntax?>(typeof(BaseMethodDeclarationSyntax), nameof(BaseMethodDeclarationSyntax.Body), fallbackResult: null));
94Assert.ThrowsAny<InvalidOperationException>(() => LightupHelpers.CreateSyntaxWithPropertyAccessor<MethodDeclarationSyntax, BlockSyntax?>(typeof(MethodDeclarationSyntax), nameof(MethodDeclarationSyntax.ExpressionBody), fallbackResult: null));
aspire (1)
Aspire.Azure.AI.Inference (2)
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 (3)
Aspire.Azure.Messaging.WebPubSub.Tests (2)
Aspire.Azure.Npgsql (2)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (2)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (8)
Aspire.Azure.Security.KeyVault (6)
Aspire.Azure.Storage.Blobs (4)
Aspire.Azure.Storage.Queues (6)
Aspire.Components.Common.TestUtilities (2)
Aspire.Confluent.Kafka (4)
Aspire.Dashboard (5)
Aspire.Dashboard.Tests (2)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (18)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.Tests (12)
Aspire.Hosting.Containers.Tests (9)
Aspire.Hosting.Docker.Tests (4)
Aspire.Hosting.Keycloak.Tests (1)
Aspire.Hosting.Kubernetes (2)
Aspire.Hosting.Kubernetes.Tests (2)
Aspire.Hosting.Orleans (2)
Aspire.Hosting.Testing (2)
Aspire.Hosting.Testing.Tests (9)
Aspire.Hosting.Tests (58)
Aspire.Keycloak.Authentication.Tests (8)
Aspire.Microsoft.Azure.Cosmos (6)
Aspire.Microsoft.Azure.Cosmos.Tests (10)
Aspire.Microsoft.Data.SqlClient (2)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (3)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (12)
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.Templates.Tests (1)
Binding.Http.IntegrationTests (1)
BuildActionTelemetryTable (2)
Client.ClientBase.IntegrationTests (5)
CodeStyleConfigFileGenerator (2)
Diagnostics.EFCore.FunctionalTests (4)
dotnet-svcutil-lib (18)
GenerateDocumentationAndConfigFiles (6)
IIS.Tests (4)
ILLink.RoslynAnalyzer (6)
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)
864Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("Custom你好Name", "Custom Value"));
865Assert.Throws<InvalidOperationException>(() => context.Response.ContentType = "Custom 你好 Type");
866Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("CustomName", "Custom 你好 Value"));
867Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("CustomName", "Custom \r Value"));
898Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("Custom你好Name", "Custom Value"));
899Assert.Throws<InvalidOperationException>(() => context.Response.Headers.Append("CustomName", "Custom \r Value"));
1015Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("Custom你好Name", "Custom Value"));
1016Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("CustomName", "Custom 你好 Value"));
1017Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("CustomName", "Custom \r Value"));
1019Assert.Throws<InvalidOperationException>(() => context.Features.Get<IHttpResponseTrailersFeature>().Trailers.ETag = "Custom 你好 Tag");
1020Assert.Throws<InvalidOperationException>(() => context.Features.Get<IHttpResponseTrailersFeature>().Trailers.Accept = "Custom 你好 Tag");
1046Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("Custom你好Name", "Custom Value"));
1047Assert.Throws<InvalidOperationException>(() => context.Response.AppendTrailer("CustomName", "Custom \r Value"));
1244var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.CompleteAsync().DefaultTimeout());
1347var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.WriteAsync("2 Hello World").DefaultTimeout());
1399var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.WriteAsync("2 Hello World").DefaultTimeout());
1445catch (InvalidOperationException)
1606var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.CompleteAsync().DefaultTimeout());
1664var ex = Assert.Throws<InvalidOperationException>(() => context.Response.BodyWriter.Complete());
2080var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => readTrailersTcs.Task).DefaultTimeout();
InProcessWebSite (5)
Interop.FunctionalTests (2)
InteropClient (1)
Metrics (6)
Metrics.Legacy (6)
Microsoft.Analyzers.Local (2)
Microsoft.Analyzers.Local.Tests (8)
Microsoft.AspNetCore.Antiforgery.Test (14)
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 (10)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Authorization.Tests (4)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (27)
Microsoft.AspNetCore.Components.Server.Tests (23)
Microsoft.AspNetCore.Components.Tests (181)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Components.Web.Tests (35)
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 (1)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (10)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Identity.Test (23)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (2)
Microsoft.AspNetCore.JsonPatch.Tests (2)
Microsoft.AspNetCore.Mvc.Abstractions.Test (14)
Microsoft.AspNetCore.Mvc.Core (6)
Microsoft.AspNetCore.Mvc.Core.Test (147)
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.Testing (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (115)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.OpenApi.Tests (5)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.RateLimiting.Tests (3)
Microsoft.AspNetCore.Razor.Runtime.Test (2)
Microsoft.AspNetCore.RequestDecompression.Tests (2)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
Microsoft.AspNetCore.Routing (3)
Microsoft.AspNetCore.Routing.FunctionalTests (15)
Microsoft.AspNetCore.Routing.Tests (81)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (25)
Microsoft.AspNetCore.Server.Kestrel.Core (13)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (104)
Microsoft.AspNetCore.Server.Kestrel.Tests (19)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (6)
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 (49)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (2)
Microsoft.AspNetCore.TestHost.Tests (19)
Microsoft.AspNetCore.Testing (2)
Microsoft.AspNetCore.Testing.Tests (5)
Microsoft.AspNetCore.Tests (16)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.AspNetCore.WebUtilities.Tests (1)
Microsoft.Bcl.Cryptography (4)
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
Microsoft.CodeAnalysis (44)
Microsoft.CodeAnalysis.Analyzers (6)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
Microsoft.CodeAnalysis.CodeStyle (6)
Microsoft.CodeAnalysis.Collections.Package (2)
Microsoft.CodeAnalysis.Contracts.Package (2)
Microsoft.CodeAnalysis.CSharp (14)
Compilation\CSharpSemanticModel.cs (10)
2518/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2545/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2574/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2600/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2627/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2654/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2684/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2713/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2743/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
2769/// <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.Emit.UnitTests (1)
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);
4768var 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 (7)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Microsoft.CodeAnalysis.Extensions.Package (4)
Microsoft.CodeAnalysis.Features (8)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
Microsoft.CodeAnalysis.PooledObjects.Package (2)
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Test.Utilities (3)
Microsoft.CodeAnalysis.Threading.Package (2)
Microsoft.CodeAnalysis.UnitTests (69)
Collections\Extensions\ImmutableArrayExtensionsTests.cs (11)
143Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single());
145Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>(1, 2).Single());
150Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single(isOdd));
152Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>(1, 2, 3).Single(isOdd));
159Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single((x, a) => x == a, 1));
161Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>(1, 1).Single((x, a) => x == a, 1));
164Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>().Single((x, a) => x % a == 1, 2));
166Assert.Throws<InvalidOperationException>(() => ImmutableArray.Create<int>(1, 2, 3).Single((x, a) => x % a == 1, 2));
232Assert.Throws<InvalidOperationException>(() => roa.Last());
234Assert.Throws<InvalidOperationException>(() => roa.Last(i => i < 1));
256Assert.Throws<InvalidOperationException>(() => roa.SingleOrDefault());
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.Workspaces (34)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (12)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (71)
SolutionTests\SolutionTests.cs (58)
117Assert.Throws<InvalidOperationException>(() => solution.RemoveDocument(s_unrelatedDocumentId));
126Assert.Throws<InvalidOperationException>(() => solution.RemoveDocuments(ImmutableArray.Create(s_unrelatedDocumentId)));
136Assert.Throws<InvalidOperationException>(() => solution.RemoveAdditionalDocument(s_unrelatedDocumentId));
145Assert.Throws<InvalidOperationException>(() => solution.RemoveAdditionalDocuments(ImmutableArray.Create(s_unrelatedDocumentId)));
155Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerConfigDocument(s_unrelatedDocumentId));
164Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerConfigDocuments(ImmutableArray.Create(s_unrelatedDocumentId)));
185Assert.Throws<InvalidOperationException>(() => solution.WithDocumentName(s_unrelatedDocumentId, name));
215Assert.Throws<InvalidOperationException>(() => solution.WithDocumentFolders(s_unrelatedDocumentId, folders));
243Assert.Throws<InvalidOperationException>(() => solution.WithDocumentFilePath(s_unrelatedDocumentId, path));
261Assert.Throws<InvalidOperationException>(() => solution.WithDocumentSourceCodeKind(s_unrelatedDocumentId, SourceCodeKind.Script));
320Assert.Throws<InvalidOperationException>(() => solution.WithDocumentSyntaxRoot(s_unrelatedDocumentId, root));
363Assert.Throws<InvalidOperationException>(() => solution.WithDocumentText(s_unrelatedDocumentId, text, PreservationMode.PreserveIdentity));
387Assert.Throws<InvalidOperationException>(() => solution.WithDocumentText(s_unrelatedDocumentId, textAndVersion, PreservationMode.PreserveIdentity));
931Assert.Throws<InvalidOperationException>(() => solution.WithAdditionalDocumentText(s_unrelatedDocumentId, text, PreservationMode.PreserveIdentity));
955Assert.Throws<InvalidOperationException>(() => solution.WithAdditionalDocumentText(s_unrelatedDocumentId, textAndVersion, PreservationMode.PreserveIdentity));
977Assert.Throws<InvalidOperationException>(() => solution.WithAnalyzerConfigDocumentText(s_unrelatedDocumentId, text, PreservationMode.PreserveIdentity));
1001Assert.Throws<InvalidOperationException>(() => solution.WithAnalyzerConfigDocumentText(s_unrelatedDocumentId, textAndVersion, PreservationMode.PreserveIdentity));
1023Assert.Throws<InvalidOperationException>(() => solution.WithDocumentTextLoader(s_unrelatedDocumentId, loader, PreservationMode.PreserveIdentity));
1045Assert.Throws<InvalidOperationException>(() => solution.WithAdditionalDocumentTextLoader(s_unrelatedDocumentId, loader, PreservationMode.PreserveIdentity));
1067Assert.Throws<InvalidOperationException>(() => solution.WithAnalyzerConfigDocumentTextLoader(s_unrelatedDocumentId, loader, PreservationMode.PreserveIdentity));
1449Assert.Throws<InvalidOperationException>(() => solution.WithProjectAssemblyName(ProjectId.CreateNewId(), "x.dll"));
1473Assert.Throws<InvalidOperationException>(() => solution.WithProjectOutputFilePath(ProjectId.CreateNewId(), "x.dll"));
1527Assert.Throws<InvalidOperationException>(() => solution.WithProjectOutputRefFilePath(ProjectId.CreateNewId(), "x.dll"));
1550Assert.Throws<InvalidOperationException>(() => solution.WithProjectCompilationOutputInfo(ProjectId.CreateNewId(), info));
1573Assert.Throws<InvalidOperationException>(() => solution.WithProjectDefaultNamespace(ProjectId.CreateNewId(), "x"));
1686Assert.Throws<InvalidOperationException>(() => solution.WithProjectName(ProjectId.CreateNewId(), "x"));
1709Assert.Throws<InvalidOperationException>(() => solution.WithProjectFilePath(ProjectId.CreateNewId(), "x"));
1725Assert.Throws<InvalidOperationException>(() => solution.WithProjectCompilationOptions(ProjectId.CreateNewId(), options));
1774Assert.Throws<InvalidOperationException>(() => solution.WithProjectParseOptions(ProjectId.CreateNewId(), options));
1936Assert.Throws<InvalidOperationException>(() => solution.WithProjectReferences(ProjectId.CreateNewId(), [projectRef]));
1939Assert.Throws<InvalidOperationException>(() => solution2.WithProjectReferences(projectId2, [new ProjectReference(projectId)]));
1940Assert.Throws<InvalidOperationException>(() => solution.WithProjectReferences(projectId, [new ProjectReference(projectId)]));
1994Assert.Throws<InvalidOperationException>(() => solution.AddProjectReferences(projectId3, [projectRef2]));
1997Assert.Throws<InvalidOperationException>(() => solution3.AddProjectReferences(projectId2, [projectRef3]));
1998Assert.Throws<InvalidOperationException>(() => solution3.AddProjectReferences(projectId, [new ProjectReference(projectId)]));
2033Assert.Throws<InvalidOperationException>(() => solution.RemoveProjectReference(ProjectId.CreateNewId(), projectRef2));
2064Assert.Throws<InvalidOperationException>(() => solution.AddProjectReferences(submissionId2, [new ProjectReference(submissionId3)]));
2065Assert.Throws<InvalidOperationException>(() => solution.WithProjectReferences(submissionId1, [new ProjectReference(submissionId2), new ProjectReference(submissionId3)]));
2068Assert.Throws<InvalidOperationException>(() => solution.AddProjectReferences(projectId0, [new ProjectReference(submissionId1)]));
2069Assert.Throws<InvalidOperationException>(() => solution.WithProjectReferences(projectId0, [new ProjectReference(submissionId1)]));
2087Assert.Throws<InvalidOperationException>(() => solution.WithProjectMetadataReferences(ProjectId.CreateNewId(), [metadataRef]));
2112Assert.Throws<InvalidOperationException>(() => solution3.AddMetadataReferences(projectId, [metadataRef1]));
2136Assert.Throws<InvalidOperationException>(() => solution.RemoveMetadataReference(projectId, new TestMetadataReference()));
2139Assert.Throws<InvalidOperationException>(() => solution.RemoveMetadataReference(ProjectId.CreateNewId(), metadataRef1));
2157Assert.Throws<InvalidOperationException>(() => solution.WithProjectAnalyzerReferences(ProjectId.CreateNewId(), [analyzerRef]));
2185Assert.Throws<InvalidOperationException>(() => solution3.AddAnalyzerReferences(projectId, [analyzerRef1]));
2209Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerReference(projectId, new TestAnalyzerReference()));
2212Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerReference(ProjectId.CreateNewId(), analyzerRef1));
2252Assert.Throws<InvalidOperationException>(() => solution3.AddAnalyzerReferences([analyzerRef1]));
2274Assert.Throws<InvalidOperationException>(() => solution.RemoveAnalyzerReference(new TestAnalyzerReference()));
2379Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", loader));
2410Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", "text"));
2438Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", sourceText));
2490Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", syntaxRoot: root));
2697Assert.ThrowsAny<InvalidOperationException>(() => solution.AddDocuments(ImmutableArray.Create(documentInfo1, documentInfo2)));
4692Assert.Throws<InvalidOperationException>(() => solution = solution.WithProjectDocumentsOrder(pid, ImmutableList.CreateRange([did5, did3, did2, did1])));
5173Assert.Throws<InvalidOperationException>(() => solution.AddProjects(projects));
5287Assert.Throws<InvalidOperationException>(() => solution.RemoveProjects(projectsToRemove));
Microsoft.CommonLanguageServerProtocol.Framework.Example (2)
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (4)
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.Internal.SymbolHelper (5)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.SignTool (1)
Microsoft.DotNet.SignTool.Tests (1)
Microsoft.DotNet.StrongName (2)
Microsoft.DotNet.XliffTasks (1)
Microsoft.DotNet.XUnitAssert.Tests (3)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (14)
Microsoft.Extensions.AI.Abstractions.Tests (15)
Microsoft.Extensions.AI.AzureAIInference (2)
Microsoft.Extensions.AI.AzureAIInference.Tests (4)
Microsoft.Extensions.AI.Evaluation (2)
Microsoft.Extensions.AI.Evaluation.Console (2)
Microsoft.Extensions.AI.Evaluation.Console.Tests (1)
Microsoft.Extensions.AI.Evaluation.NLP (2)
Microsoft.Extensions.AI.Evaluation.Quality (2)
Microsoft.Extensions.AI.Evaluation.Reporting (2)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
Microsoft.Extensions.AI.Evaluation.Safety (2)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.OllamaSharp.Integration.Tests (5)
Microsoft.Extensions.AI.OpenAI (4)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.AI.Tests (12)
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 (2)
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 (33)
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 (15)
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.Dns.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Tests (9)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.Abstractions (2)
Microsoft.Extensions.Telemetry.Tests (9)
Microsoft.Extensions.TimeProvider.Testing (2)
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
Microsoft.Extensions.Validation.GeneratorTests (2)
Microsoft.Extensions.Validation.Tests (4)
Microsoft.Gen.Logging.Generated.Tests (5)
Microsoft.Interop.SourceGeneration (5)
Microsoft.JSInterop.Tests (6)
Microsoft.Maui (1)
Microsoft.Maui.Controls (13)
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)
mscorlib (1)
netstandard (1)
PresentationCore (53)
PresentationCore.Tests (5)
PresentationFramework (127)
PresentationFramework.Tests (1)
PresentationFramework-SystemCore (1)
PresentationUI (5)
Replay (2)
Roslyn.Diagnostics.Analyzers (6)
Roslyn.VisualStudio.Next.UnitTests (8)
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 (3)
System.Collections.Concurrent (37)
System.Collections.Immutable (54)
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 (3)
System.Drawing.Common.Tests (119)
System\Drawing\BitmapTests.cs (6)
908Assert.Throws<InvalidOperationException>(() => bitmap.MakeTransparent(Color.Red));
932Assert.Throws<InvalidOperationException>(() => bitmap.SetPixel(0, 0, Color.Red));
1187Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat));
1188Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat, new BitmapData()));
1190Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(1, 1, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat));
1191Assert.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)
63Assert.Throws<InvalidOperationException>(() => graphics.GetHdc());
351Assert.Throws<InvalidOperationException>(() => graphics.CompositingMode);
352Assert.Throws<InvalidOperationException>(() => graphics.CompositingMode = CompositingMode.SourceCopy);
435Assert.Throws<InvalidOperationException>(() => graphics.CompositingQuality);
436Assert.Throws<InvalidOperationException>(() => graphics.CompositingQuality = CompositingQuality.AssumeLinear);
489Assert.Throws<InvalidOperationException>(() => graphics.DpiX);
515Assert.Throws<InvalidOperationException>(() => graphics.DpiX);
560Assert.Throws<InvalidOperationException>(graphics.Flush);
561Assert.Throws<InvalidOperationException>(() => graphics.Flush(FlushIntention.Sync));
623Assert.Throws<InvalidOperationException>(() => graphics.InterpolationMode);
624Assert.Throws<InvalidOperationException>(() => graphics.InterpolationMode = InterpolationMode.HighQualityBilinear);
676Assert.Throws<InvalidOperationException>(() => graphics.PageScale);
677Assert.Throws<InvalidOperationException>(() => graphics.PageScale = 10);
737Assert.Throws<InvalidOperationException>(() => graphics.PageUnit);
738Assert.Throws<InvalidOperationException>(() => graphics.PageUnit = GraphicsUnit.Document);
797Assert.Throws<InvalidOperationException>(() => graphics.PixelOffsetMode);
798Assert.Throws<InvalidOperationException>(() => graphics.PixelOffsetMode = PixelOffsetMode.Default);
879Assert.Throws<InvalidOperationException>(() => graphics.RenderingOrigin);
880Assert.Throws<InvalidOperationException>(() => graphics.RenderingOrigin = Point.Empty);
939Assert.Throws<InvalidOperationException>(() => graphics.SmoothingMode);
940Assert.Throws<InvalidOperationException>(() => graphics.SmoothingMode = SmoothingMode.AntiAlias);
989Assert.Throws<InvalidOperationException>(() => graphics.TextContrast);
990Assert.Throws<InvalidOperationException>(() => graphics.TextContrast = 5);
1042Assert.Throws<InvalidOperationException>(() => graphics.TextRenderingHint);
1043Assert.Throws<InvalidOperationException>(() => graphics.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit);
1125Assert.Throws<InvalidOperationException>(() => graphics.Transform);
1126Assert.Throws<InvalidOperationException>(() => graphics.Transform = matrix);
1167Assert.Throws<InvalidOperationException>(graphics.ResetTransform);
1271Assert.Throws<InvalidOperationException>(() => graphics.MultiplyTransform(matrix));
1272Assert.Throws<InvalidOperationException>(() => graphics.MultiplyTransform(matrix, MatrixOrder.Append));
1347Assert.Throws<InvalidOperationException>(() => graphics.TranslateTransform(0, 0));
1348Assert.Throws<InvalidOperationException>(() => graphics.TranslateTransform(0, 0, MatrixOrder.Append));
1428Assert.Throws<InvalidOperationException>(() => graphics.ScaleTransform(0, 0));
1429Assert.Throws<InvalidOperationException>(() => graphics.ScaleTransform(0, 0, MatrixOrder.Append));
1504Assert.Throws<InvalidOperationException>(() => graphics.RotateTransform(0));
1505Assert.Throws<InvalidOperationException>(() => graphics.RotateTransform(0, MatrixOrder.Append));
1661Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty));
1662Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty, CopyPixelOperation.DestinationInvert));
1663Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty));
1664Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty, CopyPixelOperation.DestinationInvert));
1895Assert.Throws<InvalidOperationException>(() => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, [Point.Empty]));
1896Assert.Throws<InvalidOperationException>(() => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, [PointF.Empty]));
1938Assert.Throws<InvalidOperationException>(() => graphics.GetNearestColor(Color.Red));
2014Assert.Throws<InvalidOperationException>(() => graphics.DrawArc(pen, new Rectangle(0, 0, 1, 1), 0, 90));
2015Assert.Throws<InvalidOperationException>(() => graphics.DrawArc(pen, 0, 0, 1, 1, 0, 90));
2016Assert.Throws<InvalidOperationException>(() => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 1), 0, 90));
2017Assert.Throws<InvalidOperationException>(() => graphics.DrawArc(pen, 0f, 0f, 1f, 1f, 0, 90));
2071Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangle(pen, new Rectangle(0, 0, 1, 1)));
2072Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangle(pen, 0, 0, 1, 1));
2073Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangle(pen, 0f, 0f, 1f, 1f));
2144Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangles(pen, new Rectangle[2]));
2145Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangles(pen, new RectangleF[2]));
2199Assert.Throws<InvalidOperationException>(() => graphics.DrawEllipse(pen, new Rectangle(0, 0, 1, 1)));
2200Assert.Throws<InvalidOperationException>(() => graphics.DrawEllipse(pen, 0, 0, 1, 1));
2201Assert.Throws<InvalidOperationException>(() => graphics.DrawEllipse(pen, new RectangleF(0, 0, 1, 1)));
2202Assert.Throws<InvalidOperationException>(() => graphics.DrawEllipse(pen, 0f, 0f, 1f, 1f));
2282Assert.Throws<InvalidOperationException>(() => graphics.DrawPie(pen, new Rectangle(0, 0, 1, 1), 0, 90));
2283Assert.Throws<InvalidOperationException>(() => graphics.DrawPie(pen, 0, 0, 1, 1, 0, 90));
2284Assert.Throws<InvalidOperationException>(() => graphics.DrawPie(pen, new RectangleF(0, 0, 1, 1), 0, 90));
2285Assert.Throws<InvalidOperationException>(() => graphics.DrawPie(pen, 0f, 0f, 1f, 1f, 0, 90));
2359Assert.Throws<InvalidOperationException>(() => graphics.DrawPolygon(pen, new Point[2]));
2360Assert.Throws<InvalidOperationException>(() => graphics.DrawPolygon(pen, new PointF[2]));
2432Assert.Throws<InvalidOperationException>(() => graphics.DrawPath(pen, graphicsPath));
2540Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new Point[2]));
2541Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new PointF[2]));
2542Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new Point[2], 1));
2543Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new PointF[2], 1));
2544Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new PointF[2], 0, 2));
2545Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new Point[2], 0, 2, 1));
2546Assert.Throws<InvalidOperationException>(() => graphics.DrawCurve(pen, new PointF[2], 0, 2, 1));
2632Assert.Throws<InvalidOperationException>(() => graphics.DrawClosedCurve(pen, new Point[3]));
2633Assert.Throws<InvalidOperationException>(() => graphics.DrawClosedCurve(pen, new Point[3], 1, FillMode.Winding));
2634Assert.Throws<InvalidOperationException>(() => graphics.DrawClosedCurve(pen, new PointF[3]));
2635Assert.Throws<InvalidOperationException>(() => graphics.DrawClosedCurve(pen, new PointF[3], 1, FillMode.Winding));
2711Assert.Throws<InvalidOperationException>(() => graphics.FillPie(brush, new Rectangle(0, 0, 1, 1), 0, 90));
2712Assert.Throws<InvalidOperationException>(() => graphics.FillPie(brush, 0, 0, 1, 1, 0, 90));
2713Assert.Throws<InvalidOperationException>(() => graphics.FillPie(brush, 0f, 0f, 1f, 1f, 0, 90));
2761Assert.Throws<InvalidOperationException>(() => graphics.Clear(Color.Red));
2911Assert.Throws<InvalidOperationException>(() => graphics.DrawCachedBitmap(cachedBitmap, 0, 0));
2936Assert.Throws<InvalidOperationException>(() => graphics2.DrawCachedBitmap(cachedBitmap, 0, 0));
System.Formats.Asn1 (14)
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 (111)
System.Private.DataContractSerialization (1)
System.Private.Windows.Core (2)
System.Private.Windows.Core.Tests (3)
System.Private.Windows.GdiPlus (1)
System.Private.Xml (6)
System.Private.Xml.Linq (20)
System.Reflection.Emit (8)
System.Reflection.Metadata (86)
System.Reflection.TypeExtensions (3)
System.Runtime (1)
System.Runtime.Caching (1)
System.Security.Claims (4)
System.Security.Cryptography (18)
System.Security.Cryptography.Cose (58)
System\Security\Cryptography\Cose\CoseSign1Message.cs (12)
365/// <exception cref="InvalidOperationException">The content is detached from this message, use an overload that accepts a detached content.</exception>
408/// <exception cref="InvalidOperationException">The content is detached from this message, use an overload that accepts a detached content.</exception>
451/// <exception cref="InvalidOperationException">The content is detached from this message, use an overload that accepts a detached content.</exception>
492/// <exception cref="InvalidOperationException">The content is embedded on this message, use an overload that uses embedded content.</exception>
537/// <exception cref="InvalidOperationException">The content is embedded on this message, use an overload that uses embedded content.</exception>
574/// <exception cref="InvalidOperationException">The content is embedded on this message, use an overload that uses embedded content.</exception>
617/// <exception cref="InvalidOperationException">The content is embedded on this message, use an overload that uses embedded content.</exception>
666/// <exception cref="InvalidOperationException">The content is embedded on this message, use an overload that uses embedded content.</exception>
728/// <exception cref="InvalidOperationException">The content is embedded on this message, use an overload that uses embedded content.</exception>
833/// <exception cref="InvalidOperationException">The content is embedded on this message, use an overload that uses embedded content.</exception>
896/// <exception cref="InvalidOperationException">The content is embedded on this message, use an overload that uses embedded content.</exception>
1000/// <exception cref="InvalidOperationException">The <see cref="CoseMessage.ProtectedHeaders"/> and <see cref="CoseMessage.UnprotectedHeaders"/> collections have one or more labels in common.</exception>
System\Security\Cryptography\Cose\CoseSignature.cs (11)
80/// <exception cref="InvalidOperationException">The content is detached from the associated message, use an overload that accepts a detached content.</exception>
123/// <exception cref="InvalidOperationException">The content is detached from the associated message, use an overload that accepts a detached content.</exception>
163/// <exception cref="InvalidOperationException">The content is detached from the associated message, use an overload that accepts a detached content.</exception>
207/// <exception cref="InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
253/// <exception cref="InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
290/// <exception cref="InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
334/// <exception cref="InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
383/// <exception cref="InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
447/// <exception cref="InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
507/// <exception cref="InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
571/// <exception cref="InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
System.ServiceModel.Http.Tests (2)
System.ServiceModel.Primitives (17)
System.ServiceModel.Primitives.Tests (38)
System.ServiceModel.Syndication (1)
System.Text.Json (296)
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 (84)
System.Windows.Forms.Design (28)
System.Windows.Forms.Design.Tests (96)
System.Windows.Forms.Primitives (5)
System.Windows.Forms.Primitives.Tests (4)
System.Windows.Forms.Primitives.TestUtilities.Tests (1)
System.Windows.Forms.Tests (361)
System.Windows.Forms.UI.IntegrationTests (2)
System.Xaml.Tests (22)
Test.Utilities (6)
Text.Analyzers (6)
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)