5973 references to InvalidOperationException
AndroidAppBuilder (4)
AppleAppBuilder (1)
AssemblyStripper (1)
BasicTestApp (3)
BasicWebSite (10)
Benchmarks (1)
ClientSample (3)
CodeGenerator (1)
Diagnostics.EFCore.FunctionalTests (1)
dotnet-dev-certs (10)
dotnet-getdocument (1)
dotnet-openapi (1)
dotnet-razorpagegenerator (1)
dotnet-sql-cache (1)
dotnet-user-jwts (3)
dotnet-user-secrets (1)
ExceptionHandlerSample (1)
GenericHostWebSite (1)
GetDocument.Insider (4)
HelixTestRunner (1)
http2cat (1)
HttpClientApp (2)
Identity.DefaultUI.WebSite (2)
IdentitySample.DefaultUI (2)
IIS.FunctionalTests (6)
IIS.LongTests (6)
IIS.Microbenchmarks (1)
IIS.NewHandler.FunctionalTests (6)
IIS.NewShim.FunctionalTests (6)
IIS.ShadowCopy.Tests (6)
IIS.Tests (1)
IISExpress.FunctionalTests (8)
illink (19)
ILLink.RoslynAnalyzer (13)
ILLink.Tasks (1)
InMemory.FunctionalTests (26)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
InProcessWebSite (2)
Interop.FunctionalTests (8)
InteropClient (11)
InteropTests (1)
KeyManagementSimulator (1)
Microsoft.Arcade.Common (3)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore (5)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Antiforgery (3)
Microsoft.AspNetCore.App.Analyzers (14)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.Authentication (4)
Microsoft.AspNetCore.Authentication.Abstractions (3)
Microsoft.AspNetCore.Authentication.BearerToken (2)
Microsoft.AspNetCore.Authentication.Cookies (1)
Microsoft.AspNetCore.Authentication.Core (19)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
Microsoft.AspNetCore.Authentication.Negotiate (5)
Microsoft.AspNetCore.Authentication.Negotiate.Test (8)
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
Microsoft.AspNetCore.Authentication.Test (3)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Authorization (4)
Microsoft.AspNetCore.Authorization.Policy (1)
Microsoft.AspNetCore.BrowserTesting (5)
Microsoft.AspNetCore.Components (97)
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 (65)
Microsoft.AspNetCore.Components.Endpoints.Tests (11)
Microsoft.AspNetCore.Components.Forms (7)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.Performance (1)
Microsoft.AspNetCore.Components.QuickGrid (3)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Components.Server (30)
Microsoft.AspNetCore.Components.Server.Tests (8)
Microsoft.AspNetCore.Components.Tests (14)
Microsoft.AspNetCore.Components.Web (47)
Microsoft.AspNetCore.Components.Web.Tests (2)
Microsoft.AspNetCore.Components.WebAssembly (24)
Microsoft.AspNetCore.Components.WebAssembly.Server (7)
Microsoft.AspNetCore.Components.WebView (10)
Microsoft.AspNetCore.Components.WebView.Test (3)
Microsoft.AspNetCore.ConcurrencyLimiter (2)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.Connections.Abstractions (3)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.DataProtection (13)
Microsoft.AspNetCore.DataProtection.Abstractions (1)
Microsoft.AspNetCore.DataProtection.Tests (6)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (9)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
Microsoft.AspNetCore.Diagnostics.Tests (21)
Microsoft.AspNetCore.Grpc.JsonTranscoding (67)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (7)
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.Swagger (38)
Microsoft.AspNetCore.HeaderPropagation (2)
Microsoft.AspNetCore.HostFiltering (1)
Microsoft.AspNetCore.Hosting (17)
Microsoft.AspNetCore.Hosting.Tests (11)
Microsoft.AspNetCore.Hosting.TestSites (1)
Microsoft.AspNetCore.Http (13)
Microsoft.AspNetCore.Http.Abstractions (16)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Connections (4)
Microsoft.AspNetCore.Http.Connections.Client (11)
Microsoft.AspNetCore.Http.Connections.Common (3)
Microsoft.AspNetCore.Http.Connections.Tests (3)
Microsoft.AspNetCore.Http.Extensions (57)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.Results (13)
Microsoft.AspNetCore.HttpLogging (6)
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.AspNetCore.Identity (3)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (7)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
Microsoft.AspNetCore.Identity.InMemory.Test (2)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Identity.UI (28)
Microsoft.AspNetCore.InternalTesting (5)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.Mvc.Abstractions (11)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.Core (98)
Microsoft.AspNetCore.Mvc.Core.Test (7)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Cors (1)
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Microsoft.AspNetCore.Mvc.Localization (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (9)
Microsoft.AspNetCore.Mvc.Razor (20)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
Microsoft.AspNetCore.Mvc.RazorPages (15)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.Mvc.TagHelpers (15)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
Microsoft.AspNetCore.Mvc.Testing (5)
Microsoft.AspNetCore.Mvc.ViewFeatures (50)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.OpenApi (20)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching (6)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (7)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
Microsoft.AspNetCore.Owin (2)
Microsoft.AspNetCore.RateLimiting (5)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.RequestDecompression (2)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching (3)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCompression.Tests (10)
Microsoft.AspNetCore.Rewrite (4)
Microsoft.AspNetCore.Routing (46)
Microsoft.AspNetCore.Routing.FunctionalTests (2)
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
Microsoft.AspNetCore.Routing.Tests (2)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (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.HttpSys.FunctionalTests (6)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (37)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.IntegrationTesting (8)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (17)
Microsoft.AspNetCore.Server.Kestrel.Core (95)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (14)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (28)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (9)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (17)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (10)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (8)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
42throw new InvalidOperationException("Object is being disposed twice");
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));
Microsoft.AspNetCore.Session (2)
Microsoft.AspNetCore.Session.Tests (1)
Microsoft.AspNetCore.Shared.Tests (17)
Microsoft.AspNetCore.SignalR (1)
Microsoft.AspNetCore.SignalR.Client.Core (18)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (3)
Microsoft.AspNetCore.SignalR.Client.Tests (6)
Microsoft.AspNetCore.SignalR.Common (4)
Microsoft.AspNetCore.SignalR.Common.Tests (3)
Microsoft.AspNetCore.SignalR.Core (20)
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 (4)
Microsoft.AspNetCore.SpaServices.Extensions (6)
Microsoft.AspNetCore.StaticAssets (8)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.TestHost (16)
Microsoft.AspNetCore.TestHost.Tests (11)
Microsoft.AspNetCore.Tests (3)
Microsoft.AspNetCore.WebSockets (2)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
Microsoft.AspNetCore.WebSockets.Tests (1)
Microsoft.AspNetCore.WebUtilities (3)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (2)
Microsoft.AspNetCore.WebUtilities.Tests (1)
Microsoft.Build (25)
Microsoft.Build.Engine (1)
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Engine.UnitTests (5)
Microsoft.Build.Framework (9)
Microsoft.Build.Tasks.Core (5)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.UnitTests.Shared (1)
Microsoft.Build.Utilities.Core (6)
Microsoft.Build.Utilities.UnitTests (3)
Microsoft.Cci.Extensions (6)
Microsoft.DotNet.Build.Tasks.Packaging (5)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.NuGetRepack.Tasks (2)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SignTool (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (5)
Microsoft.DotNet.VersionTools (2)
Microsoft.DotNet.XUnitExtensions (1)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Extensions.Caching.Hybrid (7)
Microsoft.Extensions.Caching.Memory (1)
Microsoft.Extensions.Caching.MicroBenchmarks (2)
Microsoft.Extensions.Caching.SqlServer (2)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
Microsoft.Extensions.Configuration (3)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Binder (10)
ConfigurationBinder.cs (10)
243throw new InvalidOperationException(SR.Format(SR.Error_MissingConfig,
455throw new InvalidOperationException(SR.Format(SR.Error_CannotActivateAbstractOrInterface, type));
465throw new InvalidOperationException(SR.Format(SR.Error_MissingPublicInstanceConstructor, type));
470throw new InvalidOperationException(SR.Format(SR.Error_MultipleParameterizedConstructors, type));
480throw new InvalidOperationException(SR.Format(SR.Error_CannotBindToConstructorParameter, type, nameOfInvalidParameter));
488throw new InvalidOperationException(SR.Format(SR.Error_ConstructorParametersDoNotMatchProperties, type, nameOfInvalidParameters));
511return instance ?? throw new InvalidOperationException(SR.Format(SR.Error_FailedToActivate, type));
744throw new InvalidOperationException(SR.Format(SR.Error_UnsupportedMultidimensionalArray, type));
1020throw new InvalidOperationException(SR.Format(SR.Error_ParameterBeingBoundToIsUnnamed, type));
1040throw new InvalidOperationException(SR.Format(SR.Error_ParameterHasNoMatchingConfig, type, parameterName));
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
Microsoft.Extensions.Configuration.UserSecrets (3)
Microsoft.Extensions.DependencyInjection (15)
Microsoft.Extensions.DependencyInjection.Abstractions (17)
ActivatorUtilities.cs (11)
59throw new InvalidOperationException(SR.CannotCreateAbstractClasses);
165throw new InvalidOperationException(SR.Format(SR.MultipleCtorsFoundWithBestLength, instanceType, bestLength));
392throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, type, requiredBy));
578throw new InvalidOperationException(SR.Format(SR.CtorNotLocated, instanceType));
616throw new InvalidOperationException(SR.Format(SR.MultipleCtorsFound, instanceType));
772throw new InvalidOperationException(SR.KeyedServicesNotSupported);
792throw new InvalidOperationException(SR.KeyedServicesNotSupported);
873throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, _constructor.Parameters[index].ParameterType, _constructor.Info.DeclaringType));
917throw new InvalidOperationException(SR.Format(SR.MultipleCtorsMarkedWithAttribute, nameof(ActivatorUtilitiesConstructorAttribute)));
922throw new InvalidOperationException(SR.Format(SR.MarkedCtorMissingArgumentTypes, nameof(ActivatorUtilitiesConstructorAttribute)));
1231throw new InvalidOperationException(SR.KeyedServicesNotSupported);
Microsoft.Extensions.DependencyModel (3)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (9)
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.WindowsServices (1)
Microsoft.Extensions.Http (7)
Microsoft.Extensions.Http.Polly (2)
Microsoft.Extensions.Identity.Core (13)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Configuration (1)
Microsoft.Extensions.Logging.Console (2)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (3)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.SourceGeneration (4)
Microsoft.JSInterop (4)
Microsoft.JSInterop.Tests (1)
Microsoft.Net.Http.Headers (1)
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (3)
Microsoft.NET.StringTools (2)
Microsoft.NET.StringTools.net35 (1)
Microsoft.NET.WebAssembly.Webcil (9)
Microsoft.VisualBasic.Core (1)
Microsoft.Web.Xdt.Extensions (1)
MobileBuildTasks (1)
MonoAOTCompiler (2)
MSBuild (3)
MSBuildTaskHost (2)
Mvc.RoutingWebSite (2)
PresentationBuildTasks (23)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\TokenizerHelper.cs (8)
126throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperExtraDataEncountered, _charIndex, _str));
147throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperPrematureStringTermination, _str));
161throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperPrematureStringTermination, _str));
253throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperMissingEndQuote, _str));
264throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
284throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperExtraDataEncountered, _charIndex, _str));
302throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
321throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
PresentationCore (487)
PresentationFramework (860)
MS\Internal\Data\CollectionViewProxy.cs (13)
415throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "NewItemPlaceholderPosition"));
454throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
473throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitNew"));
490throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelNew"));
571throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "RemoveAt"));
587throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "Remove"));
611throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "EditItem"));
628throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitEdit"));
645throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelEdit"));
752throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
816throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveSorting", "CanChangeLiveSorting"));
839throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveFiltering", "CanChangeLiveFiltering"));
862throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveGrouping", "CanChangeLiveGrouping"));
MS\Internal\Data\PropertyPathWorker.cs (5)
1570_host.ReportGetValueError(k, item, new InvalidOperationException(SR.Format(SR.NonCLSException, "GetValue")));
1626throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pi.Name));
1631throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pd.Name));
1636throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), dp.Name));
1641throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), dpa.PropertyName));
System\Windows\Controls\ItemCollection.cs (15)
256throw new InvalidOperationException(SR.ItemsSourceInUse);
348throw new InvalidOperationException(SR.ItemCollectionHasNoCollection);
904throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "NewItemPlaceholderPosition"));
943throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
962throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitNew"));
979throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelNew"));
1060throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "RemoveAt"));
1076throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "Remove"));
1100throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "EditItem"));
1117throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitEdit"));
1134throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelEdit"));
1241throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
1514throw new InvalidOperationException(SR.CannotUseItemsSource);
1952throw new InvalidOperationException(SR.ItemsSourceInUse);
1997throw new InvalidOperationException(SR.NoCheckOrChangeWhenDeferred);
System\Windows\Data\BindingListCollectionView.cs (22)
312throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "CustomFilter"));
375throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "GroupBySelector"));
435throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "NewItemPlaceholderPosition", "AddNew"));
575throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
661throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitNew", "EditItem"));
708throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelNew", "EditItem"));
887throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "RemoveAt"));
899throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Remove"));
912throw new InvalidOperationException(SR.RemovingPlaceholder);
998throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitEdit", "AddNew"));
1037throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelEdit", "AddNew"));
1051throw new InvalidOperationException(SR.CancelEditNotSupported);
1143set { throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveSorting", "CanChangeLiveSorting")); }
1155set { throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveFiltering", "CanChangeLiveFiltering")); }
1939throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
1951throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
2008throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType));
2191throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Sorting"));
2330throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
2340throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
2472throw new InvalidOperationException(SR.CannotMoveToUnknownPosition);
2537throw new InvalidOperationException(SR.BindingListCanOnlySortByOneProperty);
System\Windows\Data\ListCollectionView.cs (21)
444throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Filter"));
468throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "CustomSort"));
490throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
549throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "NewItemPlaceholderPosition", "AddNew"));
723throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew"));
746throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem"));
838throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitNew", "EditItem"));
954throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelNew", "EditItem"));
1066throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "RemoveAt"));
1078throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Remove"));
1091throw new InvalidOperationException(SR.RemovingPlaceholder);
1196throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitEdit", "AddNew"));
1307throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelEdit", "AddNew"));
1321throw new InvalidOperationException(SR.CancelEditNotSupported);
2543throw new InvalidOperationException(SR.CannotMoveToUnknownPosition);
2694throw new InvalidOperationException(SR.Format(SR.CollectionChangeIndexOutOfRange, index, ilFull.Count));
2701throw new InvalidOperationException(SR.Format(SR.AddedItemNotAtIndex, index));
2708throw new InvalidOperationException(SR.AddedItemNotInCollection);
2934throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Sorting"));
3027throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
3037throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
System\Windows\Data\XmlNamespaceMapping.cs (6)
48throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Prefix", this.GetType().Name));
50throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Prefix", this.GetType().Name));
67throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Uri", this.GetType().Name));
69throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Uri", this.GetType().Name));
145throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Prefix", this.GetType().Name));
149throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Uri", this.GetType().Name));
System\Windows\FrameworkElementFactory.cs (21)
83throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
88throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
128throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
133throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
152throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
172throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
184throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText);
211throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
290throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
315throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
351throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory"));
555throw new InvalidOperationException(SR.NullTypeIllegal);
564throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild, _type.Name));
575throw new InvalidOperationException(SR.Format(SR.ChildNameNamePatternReserved, _childName));
661throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
916throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
934throw new InvalidOperationException(SR.FrameworkElementFactoryMustBeSealed);
962throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild,
1122throw new InvalidOperationException(SR.Format(SR.AlreadyHasLogicalChildren,
1130throw new InvalidOperationException(SR.Format(SR.CannotHookupFCERoot,
1194throw new InvalidOperationException(SR.Format(SR.MissingContentSource, prefix, targetType));
System\Windows\Markup\BamlReader.cs (14)
325throw new InvalidOperationException(SR.BamlReaderClosed);
666throw new InvalidOperationException(SR.Format(SR.ParserUnknownBaml,
997throw new InvalidOperationException(SR.Format(SR.BamlReaderNoOwnerType, attrInfo.Name, AssemblyName));
1033throw new InvalidOperationException(SR.Format(SR.ParserCantGetDPOrPi, info.Name));
1676throw new InvalidOperationException(SR.Format(SR.ParserUnknownBaml,
1792throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty));
1806throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty));
1848throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
1886throw new InvalidOperationException(SR.ParserMapPIMissingAssembly);
2031throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2138throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2246throw new InvalidOperationException(SR.Format(SR.BamlScopeError,
2385throw new InvalidOperationException(SR.BamlBadExtensionValue);
2465throw new InvalidOperationException(SR.BamlBadExtensionValue);
System\Windows\Media\Animation\Storyboard.cs (28)
272throw new InvalidOperationException(
278throw new InvalidOperationException(
285throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetNameNotDependencyObject, targetName ));
320throw new InvalidOperationException(
329throw new InvalidOperationException(
338throw new InvalidOperationException(
344throw new InvalidOperationException(
352throw new InvalidOperationException(SR.Format(SR.Storyboard_BeginStoryboardNameNotFound, targetName));
399throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetNameNotAllowedInStyle, nameString));
447throw new InvalidOperationException(SR.Format(SR.Storyboard_NoTarget, currentTimeline.GetType().ToString() ));
455throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetPropertyRequired, currentTimeline.GetType().ToString() ));
465throw new InvalidOperationException(SR.Storyboard_PropertyPathEmpty);
478throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyProperty, currentPropertyPath.Path ));
544throw new InvalidOperationException(SR.Format(SR.Storyboard_MediaElementNotFound, currentObjectName ));
558throw new InvalidOperationException(SR.Storyboard_MediaElementRequired);
692throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathObjectNotFound, AccessorName(path, i-1), path.Path ));
699throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathPropertyNotFound, path.Path ));
726throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathFrozenCheckFailed, AccessorName(path, i-1), path.Path, intermediateFreezable.GetType().ToString() ));
732throw new InvalidOperationException(SR.Format(SR.Storyboard_ImmutableTargetNotSupported, path.Path));
747throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyObject, AccessorName(path, i-1), path.Path));
752throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyProperty, path.Path ));
757throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathSealedCheckFailed, intermediateDP.Name, path.Path, intermediateDO));
762throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathIncludesNonAnimatableProperty, path.Path, intermediateDP.Name));
798throw new InvalidOperationException(SR.Format(SR.Storyboard_AnimationMismatch, animationClock.Timeline.GetType(), targetProperty.Name, targetProperty.PropertyType));
845throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathUnresolved, path.Path));
876throw new InvalidOperationException(SR.Format(SR.Storyboard_ImmutableTargetNotSupported, path.Path));
947throw new InvalidOperationException(SR.Format(SR.Storyboard_ComplexPathNotSupported, targetObject.GetType().ToString()));
1973throw new InvalidOperationException(SR.Storyboard_NeverApplied);
System\Windows\PropertyPath.cs (8)
379throw new InvalidOperationException(SR.Format(SR.PropertyPathSyntaxError, detail));
564throw new InvalidOperationException(SR.Format(SR.PropertyPathInvalidAccessor,
570throw new InvalidOperationException(SR.Format(SR.PathParametersIndexOutOfRange, index, PathParameters.Count));
587throw new InvalidOperationException(SR.Format(SR.PropertyPathNoOwnerType, ownerName));
647throw new InvalidOperationException(SR.Format(SR.PropertyPathNoProperty, ownerType.Name, propertyName));
736throw new InvalidOperationException(SR.Format(SR.PathParameterIsNull, index));
740throw new InvalidOperationException(SR.Format(SR.PathParametersIndexOutOfRange, index, PathParameters.Count));
764throw new InvalidOperationException(SR.Format(SR.PropertyPathIndexWrongType, paramList[i].parenString, paramList[i].valueString));
System\Windows\Style.cs (12)
178throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
218throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
324throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style"));
490throw new InvalidOperationException(SR.Format(SR.StyleTargetTypeMismatchWithElement,
514throw new InvalidOperationException(SR.Format(SR.NullPropertyIllegal, "TargetType"));
522throw new InvalidOperationException(SR.Format(SR.MustBaseOnStyleOfABaseType, _targetType.Name));
610throw new InvalidOperationException(SR.Format(
663throw new InvalidOperationException(SR.Format(SR.SetterOnStyleNotAllowedToHaveTarget, setter.TargetName));
767throw new InvalidOperationException(SR.StyleTriggersCannotTargetTheTemplate);
775throw new InvalidOperationException(SR.Format(SR.TriggerOnStyleNotAllowedToHaveSource, conditions[k].SourceName));
821throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInStyle, trigger.GetType().Name));
831throw new InvalidOperationException(SR.Format(SR.EventTriggerOnStyleNotAllowedToHaveTarget, eventTrigger.SourceName));
System\Windows\StyleHelper.cs (18)
123throw new InvalidOperationException(SR.CannotHaveOverridesDefaultStyleInThemeStyle);
129throw new InvalidOperationException(SR.CannotHaveEventHandlersInThemeStyle);
243throw new InvalidOperationException(SR.Format(
453throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name));
460throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name));
467throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name));
474throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name));
481throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name));
518throw new InvalidOperationException(SR.Format(SR.NameNotFound, propertyValue.ChildName));
571throw new InvalidOperationException(SR.MissingTriggerProperty);
993throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInTemplate, triggerBase.GetType().Name));
1010throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInTemplate, triggerBase.GetType().Name));
1098throw new InvalidOperationException(SR.Format(SR.EventTriggerTargetNameUnresolvable, eventTrigger.SourceName));
1607throw new InvalidOperationException(SR.Format(SR.CrossThreadAccessOfUnshareableFreezable, freezable.GetType().FullName));
2090throw new InvalidOperationException(
2348throw new InvalidOperationException(SR.Format(SR.MustBeFrameworkDerived, d.GetType()));
4099throw new InvalidOperationException(SR.ChildTemplateInstanceDoesNotExist);
5336throw new InvalidOperationException(SR.StyleHasTooManyElements);
PresentationUI (22)
ReachFramework (13)
ServerComparison.TestSites (1)
SignalR.Client.FunctionalTestApp (2)
SimpleWebSiteWithWebApplicationBuilderException (1)
SocialSample (1)
Sockets.BindTests (3)
Sockets.FunctionalTests (3)
StaticFilesAuth (2)
Swaggatherer (1)
System.Collections (41)
System.Collections.Concurrent (14)
System.Collections.Immutable (14)
System.Collections.NonGeneric (21)
System.Collections.Specialized (13)
System.ComponentModel.Annotations (30)
System.ComponentModel.Composition (18)
System.ComponentModel.EventBasedAsync (5)
System.ComponentModel.TypeConverter (61)
System\ComponentModel\TypeDescriptor.cs (49)
3441if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3443if (attrs == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes"));
3464if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3486if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3507if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3509if (converter == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3529if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3531if (converter == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3552if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3572if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3594if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3614if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3616if (events == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
3635if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptorFromRegisteredType"));
3637if (events == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEventsFromRegisteredType"));
3662if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3664if (evts == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
3684if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3686if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3705if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3707if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3732if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3734if (properties == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
3756if (desc == null) throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor"));
3804throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3807throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes"));
3831throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3856throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3882throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3885throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter"));
3909throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3912throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverterFromRegisteredType"));
3937throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3963throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
3991throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4016throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4019throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
4043throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptorFromRegisteredType"));
4046throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEventsFromRegisteredType"));
4071throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4074throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents"));
4099throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4103throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
4127throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4132throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetPropertiesFromRegisteredType"));
4157throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4160throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties"));
4184throw new InvalidOperationException(SR.Format(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
4208throw new InvalidOperationException(SR.Format(SR.TypeIsNotRegistered, type.FullName));
System.Composition.Hosting (1)
System.Composition.TypedParts (1)
System.Console (13)
System.Data.Common (23)
System.Diagnostics.DiagnosticSource (16)
System.Diagnostics.Process (33)
System.Formats.Asn1 (7)
System.Formats.Cbor (38)
System.Formats.Tar (9)
System.IO.Compression (10)
System.IO.Compression.Brotli (10)
System.IO.IsolatedStorage (9)
System.IO.Pipelines (11)
System.IO.Pipes (22)
System.Linq (4)
System.Linq.Expressions (45)
System\Linq\Expressions\Error.cs (43)
33return new InvalidOperationException(Strings.InvalidMetaObjectCreated(p0));
61return new InvalidOperationException(Strings.CollectionModifiedWhileEnumerating);
82return new InvalidOperationException(Strings.BinderNotCompatibleWithCallSite(p0, p1, p2));
89return new InvalidOperationException(Strings.DynamicBindingNeedsRestrictions(p0, p1));
110return new InvalidOperationException(Strings.BindingCannotBeNull);
145return new InvalidOperationException(Strings.TypeParameterIsNotDelegate(p0));
187return new InvalidOperationException(Strings.NoOrInvalidRuleProduced);
401return new InvalidOperationException(Strings.ExtensionNodeMustOverrideProperty(p0));
422return new InvalidOperationException(Strings.CoercionOperatorNotDefined(p0, p1));
429return new InvalidOperationException(Strings.UnaryOperatorNotDefined(p0, p1));
436return new InvalidOperationException(Strings.BinaryOperatorNotDefined(p0, p1, p2));
443return new InvalidOperationException(Strings.ReferenceEqualityNotDefined(p0, p1));
450return new InvalidOperationException(Strings.OperandTypesDoNotMatchParameters(p0, p1));
457return new InvalidOperationException(Strings.OverloadOperatorTypeDoesNotMatchConversionType(p0, p1));
464return new InvalidOperationException(Strings.ConversionIsNotSupportedForArithmeticTypes);
584return new InvalidOperationException(Strings.CannotAutoInitializeValueTypeElementThroughProperty(p0));
591return new InvalidOperationException(Strings.CannotAutoInitializeValueTypeMemberThroughProperty(p0));
605return new InvalidOperationException(Strings.CoalesceUsedOnNonNullType);
612return new InvalidOperationException(Strings.ExpressionTypeCannotInitializeArrayType(p0, p1));
964return new InvalidOperationException(Strings.MethodWithArgsDoesNotExistOnType(p0, p1));
971return new InvalidOperationException(Strings.GenericMethodWithArgsDoesNotExistOnType(p0, p1));
978return new InvalidOperationException(Strings.MethodWithMoreThanOneMatch(p0, p1));
985return new InvalidOperationException(Strings.PropertyWithMoreThanOneMatch(p0, p1));
1013return new InvalidOperationException(Strings.LabelTargetAlreadyDefined(p0));
1020return new InvalidOperationException(Strings.LabelTargetUndefined(p0));
1027return new InvalidOperationException(Strings.ControlCannotLeaveFinally);
1034return new InvalidOperationException(Strings.ControlCannotLeaveFilterTest);
1041return new InvalidOperationException(Strings.AmbiguousJump(p0));
1048return new InvalidOperationException(Strings.ControlCannotEnterTry);
1055return new InvalidOperationException(Strings.ControlCannotEnterExpression);
1062return new InvalidOperationException(Strings.NonLocalJumpWithValue(p0));
1093return new InvalidOperationException(Strings.InvalidLvalue(p0));
1101return new InvalidOperationException(Strings.UndefinedVariable(p0, p1, p2));
1108return new InvalidOperationException(Strings.CannotCloseOverByRef(p0, p1));
1115return new InvalidOperationException(Strings.UnexpectedVarArgsCall(p0));
1122return new InvalidOperationException(Strings.RethrowRequiresCatch);
1129return new InvalidOperationException(Strings.TryNotAllowedInFilter);
1136return new InvalidOperationException(Strings.MustRewriteToSameNode(p0, p1, p2));
1143return new InvalidOperationException(Strings.MustRewriteChildToSameType(p0, p1, p2));
1150return new InvalidOperationException(Strings.MustRewriteWithoutMethod(p0, p1));
1221return new InvalidOperationException(Strings.NonAbstractConstructorRequired);
1237return new InvalidOperationException(Strings.EnumerationIsDone);
1317return new InvalidOperationException(Strings.IncorrectNumberOfLambdaArguments);
System.Linq.Parallel (36)
System.Linq.Queryable (3)
System.Memory (2)
System.Net.Http (21)
System.Net.HttpListener (21)
System.Net.Mail (37)
System.Net.NameResolution (1)
System.Net.NetworkInformation (5)
System.Net.Ping (2)
System.Net.Primitives (5)
System.Net.Quic (6)
System.Net.Requests (48)
System.Net.Security (31)
System.Net.Sockets (43)
System.Net.WebHeaderCollection (10)
System.Net.WebSockets (2)
System.Net.WebSockets.Client (3)
System.ObjectModel (1)
System.Private.CoreLib (261)
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (66)
System\Xml\XmlBaseWriter.cs (32)
120throw new InvalidOperationException(SR.XmlWriterClosed);
155throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString()));
179throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString()));
207throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartAttribute", WriteState.ToString()));
311throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteEndAttribute", WriteState.ToString()));
370throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteEndAttribute", WriteState.ToString()));
434throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteComment", WriteState.ToString()));
460throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteFullEndElement", WriteState.ToString()));
472throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteCData", WriteState.ToString()));
496throw new InvalidOperationException(SR.XmlOnlyOneRoot);
501throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()));
539throw new InvalidOperationException(SR.XmlOnlyOneRoot);
542throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()));
609throw new InvalidOperationException(SR.Format(SR.XmlInvalidDepth, "WriteEndElement", _depth.ToString(CultureInfo.InvariantCulture)));
636throw new InvalidOperationException(SR.Format(SR.XmlInvalidDepth, "WriteEndElement", _depth.ToString(CultureInfo.InvariantCulture)));
720throw new InvalidOperationException(SR.XmlIllegalOutsideRoot);
727throw new InvalidOperationException(SR.XmlIllegalOutsideRoot);
754throw new InvalidOperationException(SR.XmlIllegalOutsideRoot);
760throw new InvalidOperationException(SR.XmlIllegalOutsideRoot);
766throw new InvalidOperationException(SR.XmlIllegalOutsideRoot);
869throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartDocument", WriteState.ToString()));
894throw new InvalidOperationException(SR.XmlInvalidDeclaration);
921throw new InvalidOperationException(SR.XmlNoRootElement);
1591throw new InvalidOperationException(SR.XmlCanonicalizationStarted);
1604throw new InvalidOperationException(SR.XmlCanonicalizationNotStarted);
1632throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "StartFragment", WriteState.ToString()));
1684throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "EndFragment", WriteState.ToString()));
1719throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteFragment", WriteState.ToString()));
1817throw new InvalidOperationException(SR.XmlOnlyOneRoot);
1819throw new InvalidOperationException(SR.XmlOnlyOneRoot);
1821throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()));
1828throw new InvalidOperationException(SR.Format(SR.XmlInvalidPrefixState, WriteState.ToString()));
System.Private.Uri (38)
System.Private.Xml (532)
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);
1159throw new InvalidOperationException(SR.Format(SR.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.EndElement]));
1210throw new InvalidOperationException(SR.Sch_InvalidEndElementCallTyped);
2066throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStartTransition, new string[] { methodName, s_methodNames[(int)ValidatorState.Start] }));
2068throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], methodName }));
System\Xml\Serialization\Compilation.cs (9)
88throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Failed to generate XmlSerializer assembly, but did not throw"));
190throw new InvalidOperationException(SR.Format(SR.XmlPregenInvalidXmlSerializerAssemblyAttribute, "AssemblyName", "CodeBase"));
350throw new InvalidOperationException(SR.Format(SR.XmlPregenTypeDynamic, types[i]!.FullName));
543throw new InvalidOperationException(SR.Format(SR.XmlMissingType, typeName, assembly.FullName));
569throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncoding3, encodingStyle, Soap.Encoding, Soap12.Encoding));
574throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncodingNotEncoded1, encodingStyle));
601throw new InvalidOperationException(SR.Format(SR.XmlTypeInBadLoadContext, t.FullName));
619throw new InvalidOperationException(SR.Format(SR.XmlNotSerializable, mapping.Accessor.Name));
646throw new InvalidOperationException(SR.Format(SR.XmlNotSerializable, mapping.Accessor.Name));
System\Xml\Serialization\Mappings.cs (15)
242throw new InvalidOperationException(SR.Format(SR.Xml_InvalidNameChars, Name));
599throw new InvalidOperationException(SR.Format(SR.XmlHiddenMember, parent, member.Name, member.TypeDesc!.FullName, this.TypeName, _members[i].Name, _members[i].TypeDesc!.FullName));
602throw new InvalidOperationException(SR.Format(SR.XmlInvalidXmlOverride, parent, member.Name, this.TypeName, _members[i].Name));
626throw new InvalidOperationException(SR.Format(SR.XmlIllegalSimpleContentExtension, TypeDesc!.FullName, BaseMapping.TypeDesc.FullName));
639throw new InvalidOperationException(SR.Format(SR.XmlIllegalTypedTextAttribute, TypeDesc!.FullName, text.Name, text.Mapping.TypeDesc.FullName));
1083throw new InvalidOperationException(SR.Format(SR.XmlCircularDerivation, TypeDesc!.FullName));
1208throw new InvalidOperationException(SR.Format(SR.XmlSerializableSchemaError, nameof(IXmlSerializable), args.Message));
1241throw new InvalidOperationException(SR.Format(SR.XmlSerializableRootDupName, _getSchemaMethod!.DeclaringType!.FullName, e.Name, elementNs));
1294throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaEmptyTypeName, _type!.FullName, _getSchemaMethod.Name));
1299throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, _type!.Name, _getSchemaMethod.Name, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName));
1323throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, _xsiType.Namespace));
1327throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaInclude, _xsiType.Namespace, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name));
1332throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, _xsiType.Namespace));
1337throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaTypeMissing, _getSchemaMethod.DeclaringType!.FullName, _getSchemaMethod.Name, _xsiType.Name, _xsiType.Namespace));
1350if (string.IsNullOrEmpty(_schema.Id)) throw new InvalidOperationException(SR.Format(SR.XmlSerializableNameMissing1, _type!.FullName));
System\Xml\Serialization\SoapReflectionImporter.cs (20)
169throw new InvalidOperationException(SR.Format(SR.XmlInvalidDataTypeUsage, dataType, "SoapElementAttribute.DataType"));
174throw new InvalidOperationException(SR.Format(SR.XmlInvalidXsdDataType, dataType, "SoapElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString()));
178throw new InvalidOperationException(SR.Format(SR.XmlDataTypeMismatch, dataType, "SoapElementAttribute.DataType", model.TypeDesc.FullName));
185throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.Type.FullName));
253throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, mapping.TypeDesc!.FullName, typeName, ns));
276throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace));
281throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace));
340throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed"));
342throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed"));
502throw new InvalidOperationException(SR.Format(SR.XmlInvalidSoapArray, mapping.TypeDesc!.FullName));
541throw new InvalidOperationException(SR.Format(SR.XmlUdeclaredXsdType, dataType));
583throw new InvalidOperationException(SR.Format(SR.XmlNoSerializableMembers, model.TypeDesc.FullName));
595throw new InvalidOperationException(SR.XmlInvalidEnumAttribute);
619if (i > 0) throw new InvalidOperationException(SR.XmlInvalidReturnPosition);
690throw new InvalidOperationException(SR.XmlInvalidVoid);
697throw new InvalidOperationException(SR.Format(SR.XmlIllegalSoapAttribute, accessorName, accessor.TypeDesc.FullName));
700throw new InvalidOperationException(SR.XmlInvalidElementAttribute);
714throw new InvalidOperationException(SR.XmlInvalidElementAttribute);
751throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultEnumValue, a.SoapDefaultValue.GetType().FullName, fieldTypeDesc.FullName));
755throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, strValue, a.SoapDefaultValue.GetType().FullName));
System\Xml\Serialization\Types.cs (9)
396_exception = new InvalidOperationException(SR.Format(SR.XmlConstructorInaccessible, FullName));
712throw new InvalidOperationException(SR.Format(SR.XmlUnsupportedOpenGenericType, type));
776exception = new InvalidOperationException(SR.Format(SR.XmlTypeInaccessible, type.FullName));
781exception = new InvalidOperationException(SR.Format(SR.XmlTypeStatic, type.FullName));
1085throw new InvalidOperationException(SR.Format(SR.XmlReadOnlyPropertyError, propertyInfo.DeclaringType, propertyInfo.Name));
1305throw new InvalidOperationException(SR.Format(SR.XmlNoAddMethod, type.FullName, currentType, "IEnumerable"));
1356throw new InvalidOperationException(SR.Format(SR.XmlNoDefaultAccessors, type.FullName));
1361throw new InvalidOperationException(SR.Format(SR.XmlNoAddMethod, type.FullName, indexer.PropertyType, "ICollection"));
1391throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeSyntax, type));
System\Xml\Serialization\XmlReflectionImporter.cs (94)
126throw new InvalidOperationException(SR.Format(SR.XmlAnonymousInclude, type.FullName));
273throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, model.TypeDesc.BaseTypeDesc!.FullName, "XmlRoot"));
328throw new InvalidOperationException(SR.Format(SR.XmlCannotReconcileAccessorDefault, accessor.Name, accessor.Namespace, value1, value2));
333throw new InvalidOperationException(SR.Format(SR.XmlMethodTypeNameConflict, accessor.Name, accessor.Namespace));
339throw new InvalidOperationException(SR.Format(SR.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping!), GetMappingName(accessor.Mapping)));
356throw new InvalidOperationException(SR.Format(SR.XmlCannotReconcileAttributeAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping!), GetMappingName(accessor.Mapping!)));
358throw new InvalidOperationException(SR.Format(SR.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping!), GetMappingName(accessor.Mapping!)));
392throw new InvalidOperationException(SR.Format(SR.XmlInvalidDataTypeUsage, dataType, "XmlElementAttribute.DataType"));
397throw new InvalidOperationException(SR.Format(SR.XmlInvalidXsdDataType, dataType, "XmlElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString()));
401throw new InvalidOperationException(SR.Format(SR.XmlDataTypeMismatch, dataType, "XmlElementAttribute.DataType", modelTypeDesc.FullName));
408throw new InvalidOperationException(SR.Format(SR.XmlInvalidTypeAttributes, model.Type.FullName));
449throw new InvalidOperationException(SR.Format(SR.XmlSerializableAttributes, model.TypeDesc.FullName, nameof(XmlSchemaProviderAttribute)));
485throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodMissing, provider.MethodName, nameof(XmlSchemaSet), type.FullName));
488throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, type.Name, provider.MethodName, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName, typeof(XmlSchemaType).FullName));
578throw new InvalidOperationException(SR.Format(SR.XmlMissingSchema, baseQname.Namespace));
582throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaInclude, baseQname.Namespace, nameof(IXmlSerializable), "GetSchema"));
609return new InvalidOperationException(SR.Format(SR.XmlInvalidAttributeUse, type.FullName));
614return new InvalidOperationException(SR.Format(SR.XmlIllegalTypeContext, typeDesc.FullName, GetContextName(context)));
658throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace));
663throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace));
706throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, mapping.TypeDesc!.FullName, typeName, ns));
762throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed"));
764throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed"));
856throw new InvalidOperationException(SR.Format(SR.XmlIllegalTypedTextAttribute, typeName, member.Text.Name, member.Text.Mapping.TypeDesc.FullName));
859throw new InvalidOperationException(SR.Format(SR.XmlIllegalMultipleText, model.Type.FullName));
866throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName));
897throw new InvalidOperationException(SR.Format(SR.XmlSequenceUnique, member.SequenceId.ToString(CultureInfo.InvariantCulture), "Order", member.Name));
903throw new InvalidOperationException(SR.Format(SR.XmlSequenceInconsistent, "Order", member.Name));
913throw new InvalidOperationException(SR.Format(SR.XmlMultipleXmlns, model.Type.FullName));
1153throw new InvalidOperationException(SR.Format(SR.XmlUdeclaredXsdType, dataType));
1188throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttributeFlagsArray, model.TypeDesc.FullName));
1203throw new InvalidOperationException(SR.Format(SR.XmlNoSerializableMembers, model.TypeDesc.FullName));
1216throw new InvalidOperationException(SR.XmlInvalidConstantAttribute);
1248throw new InvalidOperationException(SR.XmlRpcLitAttributeAttributes);
1252throw new InvalidOperationException(SR.Format(SR.XmlInvalidAttributeType, "XmlAttribute"));
1258if (i > 0) throw new InvalidOperationException(SR.XmlInvalidReturnPosition);
1274throw new InvalidOperationException(SR.XmlIllegalMultipleTextMembers);
1282throw new InvalidOperationException(SR.XmlMultipleXmlnsMembers);
1297throw new InvalidOperationException(SR.Format(SR.XmlSequenceMembers, "Order"));
1412throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierType, identifierName, memberName, type.GetElementType()!.FullName));
1419throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierArrayType, identifierName, memberName, type.FullName));
1425throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierTypeEnum, identifierName));
1440throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1457throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1464throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierAmbiguous, choice.MemberName));
1471throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMemberMissing, choice.MemberName, accessorName));
1552throw new InvalidOperationException(SR.XmlIllegalAttributesArrayAttribute);
1558throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName, nameof(IXmlSerializable)));
1562throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName));
1599throw new InvalidOperationException(SR.XmlIllegalElementsArrayAttribute);
1609throw new InvalidOperationException(SR.Format(SR.XmlIllegalArrayTextAttribute, accessorName));
1637throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1650throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1662throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, arrayElementType.FullName));
1673throw new InvalidOperationException(SR.Format(SR.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace ?? "null"));
1700throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1710throw new InvalidOperationException(SR.XmlIllegalArrayArrayAttribute);
1744throw new InvalidOperationException(SR.XmlIllegalAttribute);
1748if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, accessor.TypeDesc.FullName));
1752if (a.XmlElements.Count > 0) throw new InvalidOperationException(SR.XmlIllegalAttribute);
1753if (a.XmlAttribute.Type != null) throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlAttribute"));
1779throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlText"));
1796throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlElement"));
1810throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1823throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1834throw new InvalidOperationException(SR.XmlSoleXmlnsAttribute);
1838throw new InvalidOperationException(SR.Format(SR.XmlXmlnsInvalidType, accessorName, accessorType.FullName, typeof(System.Xml.Serialization.XmlSerializerNamespaces).FullName));
1849throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.FullName, nameof(IXmlSerializable)));
1853throw new InvalidOperationException(SR.Format(SR.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc));
1878throw new InvalidOperationException(SR.Format(SR.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc!.FullName, "XmlElement"));
1891throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1903throw new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, accessorType.FullName));
1915throw new InvalidOperationException(SR.Format(SR.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace ?? "null"));
1940throw new InvalidOperationException(SR.Format(SR.XmlSequenceMatch, "Order"));
1954throw new InvalidOperationException(SR.Format(SR.XmlRpcLitArrayElement, accessor.Elements[0].Name));
1957throw new InvalidOperationException(SR.Format(SR.XmlRpcLitXmlns, accessor.Name));
2003throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, accessor.ChoiceIdentifier.Mapping!.TypeDesc!.FullName));
2009throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping!.TypeDesc!.FullName, id, element.Name, element.Namespace));
2025throw new InvalidOperationException(SR.XmlRpcLitAttributeAttributes);
2028throw new InvalidOperationException(SR.XmlRpcLitAttributes);
2034throw new InvalidOperationException(SR.XmlRpcLitElements);
2039throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", xmlElement.Namespace));
2043throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNullable, "IsNullable", "true"));
2048throw new InvalidOperationException(SR.Format(SR.XmlRpcLitElementNamespace, "Namespace", a.XmlArray.Namespace));
2065throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2076throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMissing, nameof(XmlChoiceIdentifierAttribute), accessorName));
2091throw new InvalidOperationException(SR.Format(SR.XmlArrayItemAmbiguousTypes, accessorName, item.ElementName, items[i]!.ElementName, nameof(XmlElementAttribute), nameof(XmlChoiceIdentifierAttribute), accessorName));
2114throw new InvalidOperationException(SR.Format(SR.XmlChoiceIdDuplicate, choiceMapping.TypeName, choiceId));
2135throw new InvalidOperationException(SR.Format(SR.XmlInvalidDefaultValue, strValue, a.XmlDefaultValue.GetType().FullName));
2168throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementName, existing.Name, existing.Namespace));
2174throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Bad accessor type " + accessor.GetType().FullName));
2176throw new InvalidOperationException(SR.Format(SR.XmlDuplicateAttributeName, existing.Name, existing.Namespace));
2202if (isQualified && form == XmlSchemaForm.Unqualified) throw new InvalidOperationException(SR.XmlInvalidFormUnqualified);
2209if (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)
67throw new InvalidOperationException(SR.Format(SR.XmlBadBaseElement, name.Name, name.Namespace, baseType.FullName));
117throw new InvalidOperationException(SR.Format(SR.XmlBadBaseType, typeName.Name, typeName.Namespace, baseType.FullName));
270throw new InvalidOperationException(SR.Format(SR.XmlElementHasNoName, parentType.Name, parentType.Namespace));
349throw new InvalidOperationException(SR.Format(SR.XmlElementImportedTwice, element.Name, ns, mapping.GetType().Name, desiredMappingType.Name));
416throw new InvalidOperationException(SR.XmlInternalError);
461if (!type.DerivedFrom.IsEmpty) throw new InvalidOperationException(SR.XmlMembersDeriveError);
523throw new InvalidOperationException(SR.Format(SR.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace));
570throw new InvalidOperationException(SR.Format(SR.XmlIllegalOverride, type.Name, baseMember.Name, baseMember.TypeDesc!.FullName, structMapping.Members[i].TypeDesc!.FullName, declaringMapping!.TypeDesc!.FullName));
966throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementInScope, element.Name, element.Namespace));
970throw new InvalidOperationException(SR.Format(SR.XmlDuplicateElementInScope1, element.Name, element.Namespace));
1577if (attribute.Name!.Length == 0) throw new InvalidOperationException(SR.XmlAttributeHasNoName);
1819throw new InvalidOperationException(SR.Format(SR.XmlMissingGroup, name.Name));
1828throw new InvalidOperationException(SR.Format(SR.XmlMissingAttributeGroup, name.Name));
1896throw new InvalidOperationException(SR.Format(SR.XmlInvalidEncoding, name));
1900throw new InvalidOperationException(SR.Format(SR.XmlMissingDataType, name));
1926throw new InvalidOperationException(SR.Format(SR.XmlMissingElement, name));
1934throw new InvalidOperationException(SR.Format(SR.XmlMissingAttribute, name.Name));
System\Xml\Serialization\XmlSerializationReader.cs (29)
948if (arrayInfo.dimensions != 1) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()));
950if (qname.Name != name) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeName, qname.Name, name, CurrentTag()));
951if (qname.Namespace != ns) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayTypeNamespace, qname.Namespace, ns, CurrentTag()));
1160throw new InvalidOperationException(SR.Format(SR.XmlUndefinedAlias, prefix));
1285return new InvalidOperationException(SR.Format(SR.XmlUnknownType, type.Name, type.Namespace, CurrentTag()));
1290return new InvalidOperationException(SR.Format(SR.XmlReadOnlyCollection, name));
1295return new InvalidOperationException(SR.Format(SR.XmlAbstractType, name, ns, CurrentTag()));
1300return new InvalidOperationException(SR.Format(SR.XmlConstructorInaccessible, typeName));
1305return new InvalidOperationException(SR.Format(SR.XmlConstructorHasSecurityAttributes, typeName));
1310return new InvalidOperationException(SR.Format(SR.XmlUnknownNode, CurrentTag()));
1315return new InvalidOperationException(SR.Format(SR.XmlUnknownConstant, value, enumType.Name));
1335return new InvalidOperationException(SR.Format(SR.XmlSerializableBadDerivation, xsdDerived, nsDerived, xsdBase, nsBase, clrDerived, clrBase));
1340return new InvalidOperationException(SR.Format(SR.XmlSerializableMissingClrType, name, ns, nameof(XmlIncludeAttribute), clrType));
1425if (!href.StartsWith('#')) throw new InvalidOperationException(SR.Format(SR.XmlMissingHref, href));
1476throw new InvalidOperationException(SR.Format(SR.XmlInvalidHref, id));
1545throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayRef, id, o.GetType().FullName, i.ToString(CultureInfo.InvariantCulture)));
1577if (arrayInfo.dimensions != 1) throw new InvalidOperationException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()));
2448if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
2815if (enumMethodName == null) throw new InvalidOperationException(SR.Format(SR.XmlMissingMethodEnum, mapping.TypeDesc!.Name));
3059if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc!.Name));
3096if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, enumMapping.TypeDesc!.Name));
3333throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order"));
3811throw new InvalidOperationException(SR.XmlInternalError);
4074throw new InvalidOperationException(SR.XmlInternalError);
4624if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, element.Mapping.TypeDesc!.Name));
4771if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.Name));
4850throw new InvalidOperationException(SR.XmlInternalError);
4855throw new InvalidOperationException(SR.XmlInternalError);
4861if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "need parent for the " + source));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (12)
373if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
693if (enumMethodName == null) throw new InvalidOperationException(SR.Format(SR.XmlMissingMethodEnum, mapping.TypeDesc!.Name));
1153if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc!.Name));
1209if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, enumMapping.TypeDesc!.Name));
1583throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order"));
2083throw new InvalidOperationException(SR.XmlInternalError);
2375throw new InvalidOperationException(SR.XmlInternalError);
3011if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, element.Mapping.TypeDesc!.Name));
3160if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.Name));
3278throw new InvalidOperationException(SR.XmlInternalError);
3283throw new InvalidOperationException(SR.XmlInternalError);
3289if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "need parent for the " + source));
System\Xml\Serialization\XmlSerializationWriter.cs (30)
498if (_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(SR.Format(SR.XmlCircularReference, o.GetType().FullName));
544throw new InvalidOperationException(SR.Format(SR.XmlInvalidXmlns, alias));
656if (!_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "missing stack object of type " + o.GetType().FullName));
781throw new InvalidOperationException(SR.XmlNoAttributeHere);
797throw new InvalidOperationException(SR.Format(SR.XmlElementNameMismatch, node.LocalName, node.NamespaceURI, name, ns));
818if (typeof(IXmlSerializable).IsAssignableFrom(type)) return new InvalidOperationException(SR.Format(SR.XmlInvalidSerializable, type.FullName));
820if (!typeDesc.IsStructLike) return new InvalidOperationException(SR.Format(SR.XmlInvalidUseOfType, type.FullName));
821return new InvalidOperationException(SR.Format(SR.XmlUnxpectedType, type.FullName));
827return new InvalidOperationException(SR.Format(SR.XmlChoiceMismatchChoiceException, elementName, value, enumValue));
832return new InvalidOperationException(SR.Format(SR.XmlUnknownAnyElement, name, ns));
837return new InvalidOperationException(SR.Format(SR.XmlInvalidChoiceIdentifierValue, type, identifier));
843return new InvalidOperationException(SR.Format(SR.XmlChoiceIdentifierMismatch, value, identifier, name, ns));
848return new InvalidOperationException(SR.Format(SR.XmlUnknownConstant, value, typeName));
858return new InvalidOperationException(SR.Format(SR.XmlIllegalAnyElement, type.FullName));
927if (attr == null) throw new InvalidOperationException(SR.XmlNeedAttributeHere);
1282if (!typeof(IEnumerable).IsAssignableFrom(type)) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "not array like type " + type.FullName));
1446throw new InvalidOperationException(SR.Format(SR.XmlDuplicateNs, prefix, ns));
1795throw new InvalidOperationException(SR.Format(SR.XmlSerializerUnsupportedType, memberInfos[0]));
2406if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.Name) + Environment.StackTrace);
2454if (defaultValue!.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name));
2757if (enumSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
2985if (methodName == null) throw new InvalidOperationException("derived from " + mapping.TypeDesc!.FullName + ", " + SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc.Name) + Environment.StackTrace);
3024if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace);
3471throw new InvalidOperationException(SR.XmlInternalError);
3902throw new InvalidOperationException(SR.XmlInternalError);
4111if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, structMapping.TypeDesc!.Name) + Environment.StackTrace);
4170throw new InvalidOperationException(SR.XmlInternalError);
4375throw new InvalidOperationException(SR.Format(SR.XmlUnsupportedDefaultType, type.FullName));
4484throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc!.FullName));
4487throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingValue, choiceMapping.TypeDesc!.FullName, $"{element.Namespace}:{element.Name}", element.Name, element.Namespace));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
132if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc!.Name));
208if (defaultValue!.GetType() != typeof(string)) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name));
532if (enumSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping."));
762if (methodName == null) throw new InvalidOperationException("derived from " + mapping.TypeDesc!.FullName + ", " + SR.Format(SR.XmlInternalErrorMethod, derived.TypeDesc.Name));
814if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, mapping.TypeDesc.Name));
1393throw new InvalidOperationException(SR.XmlInternalError);
1914throw new InvalidOperationException(SR.XmlInternalError);
2018if (methodName == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorMethod, structMapping.TypeDesc!.Name));
2084throw new InvalidOperationException(SR.XmlInternalError);
2309throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc!.FullName));
2312throw new InvalidOperationException(SR.Format(SR.XmlChoiceMissingValue, choiceMapping.TypeDesc!.FullName, $"{element.Namespace}:{element.Name}", element.Name, element.Namespace));
System.Private.Xml.Linq (56)
System.Reflection.Context (10)
System.Reflection.Emit (28)
System.Reflection.Metadata (23)
System.Reflection.MetadataLoadContext (109)
System\Reflection\TypeLoading\Properties\RoProperty.cs (7)
156throw new InvalidOperationException(SR.Arg_EnumLitValueNotFound);
167public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
168public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
169public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
170public sealed override object GetConstantValue() => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
171public sealed override object GetValue(object? obj, BindingFlags invokeAttr, Binder? binder, object?[]? index, CultureInfo? culture) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
172public sealed override void SetValue(object? obj, object? value, BindingFlags invokeAttr, Binder? binder, object?[]? index, CultureInfo? culture) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System.Reflection.TypeExtensions (1)
System.Resources.Extensions (19)
System.Resources.Writer (7)
System.Runtime.Caching (3)
System.Runtime.InteropServices (4)
System.Security.Claims (3)
System.Security.Cryptography (34)
System.Security.Cryptography.Cose (25)
System.Text.Json (69)
System\Text\Json\ThrowHelper.Serialization.cs (54)
63throw new InvalidOperationException(SR.Format(SR.DeserializeUnableToAssignNull, declaredType));
69throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPopulateNotSupportedByConverter, propertyInfo.Name, propertyInfo.DeclaringType));
75throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyMustHaveAGetter, propertyInfo.Name, propertyInfo.DeclaringType));
81throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyValueTypeMustHaveASetter, propertyInfo.Name, propertyInfo.DeclaringType));
87throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyCannotAllowPolymorphicDeserialization, propertyInfo.Name, propertyInfo.DeclaringType));
93throw new InvalidOperationException(SR.Format(SR.ObjectCreationHandlingPropertyCannotAllowReadOnlyMember, propertyInfo.Name, propertyInfo.DeclaringType));
99throw new InvalidOperationException(SR.ObjectCreationHandlingPropertyCannotAllowReferenceHandling);
151throw new InvalidOperationException(SR.Format(SR.CannotSerializeInvalidType, typeToConvert));
155throw new InvalidOperationException(SR.Format(SR.CannotSerializeInvalidMember, typeToConvert, memberInfo.Name, declaringType));
161throw new InvalidOperationException(SR.Format(SR.SerializationConverterNotCompatible, converterType, type));
167throw new InvalidOperationException(SR.Format(SR.ResolverTypeNotCompatible, actualType, requestedType));
173throw new InvalidOperationException(SR.ResolverTypeInfoOptionsNotCompatible);
179throw new InvalidOperationException(SR.JsonSerializerOptionsNoTypeInfoResolverSpecified);
185throw new InvalidOperationException(SR.JsonSerializerIsReflectionDisabled);
197throw new InvalidOperationException(SR.Format(SR.SerializationConverterOnAttributeInvalid, location));
210throw new InvalidOperationException(SR.Format(SR.SerializationConverterOnAttributeNotCompatible, location, typeToConvert));
220throw new InvalidOperationException(message);
226throw new InvalidOperationException(SR.DefaultTypeInfoResolverImmutable);
232throw new InvalidOperationException(SR.TypeInfoResolverChainImmutable);
238throw new InvalidOperationException(SR.TypeInfoImmutable);
244throw new InvalidOperationException(SR.SerializerOptions_InvalidChainedResolver);
250throw new InvalidOperationException(SR.Format(SR.SerializerPropertyNameConflict, type, propertyName));
256throw new InvalidOperationException(SR.Format(SR.SerializerPropertyNameNull, jsonPropertyInfo.DeclaringType, jsonPropertyInfo.MemberName));
262throw new InvalidOperationException(SR.Format(SR.JsonPropertyRequiredAndNotDeserializable, jsonPropertyInfo.Name, jsonPropertyInfo.DeclaringType));
268throw new InvalidOperationException(SR.Format(SR.JsonPropertyRequiredAndExtensionData, jsonPropertyInfo.Name, jsonPropertyInfo.DeclaringType));
312throw new InvalidOperationException(SR.Format(SR.NamingPolicyReturnNull, namingPolicy));
318throw new InvalidOperationException(SR.Format(SR.SerializerConverterFactoryReturnsNull, converterType));
324throw new InvalidOperationException(SR.Format(SR.SerializerConverterFactoryReturnsJsonConverterFactory, converterType));
334throw new InvalidOperationException(
346throw new InvalidOperationException(SR.Format(SR.ConstructorParamIncompleteBinding, parentType));
352throw new InvalidOperationException(SR.Format(SR.ExtensionDataCannotBindToCtorParam, propertyName, jsonPropertyInfo.DeclaringType));
358throw new InvalidOperationException(SR.Format(SR.JsonIncludeOnInaccessibleProperty, memberName, declaringType));
364throw new InvalidOperationException(SR.Format(SR.IgnoreConditionOnValueTypeInvalid, clrPropertyName, propertyDeclaringType));
371throw new InvalidOperationException(SR.Format(SR.NumberHandlingOnPropertyInvalid, jsonPropertyInfo.MemberName, jsonPropertyInfo.DeclaringType));
377throw new InvalidOperationException(SR.Format(SR.ConverterCanConvertMultipleTypes, jsonConverter.GetType(), jsonConverter.Type, runtimePropertyType));
397throw new InvalidOperationException(SR.Format(SR.InvalidJsonTypeInfoOperationForKind, kind));
403throw new InvalidOperationException(SR.Format(SR.CreateObjectConverterNotCompatible, type));
504throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateAttribute, attribute, location));
510throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateTypeAttribute, classType, attribute));
516throw new InvalidOperationException(SR.Format(SR.SerializationDuplicateTypeAttribute, classType, typeof(TAttribute)));
522throw new InvalidOperationException(SR.Format(SR.ExtensionDataConflictsWithUnmappedMemberHandling, classType, jsonPropertyInfo.MemberName));
528throw new InvalidOperationException(SR.Format(SR.SerializationDataExtensionPropertyInvalid, jsonPropertyInfo.PropertyType, jsonPropertyInfo.MemberName));
534throw new InvalidOperationException(SR.NodeJsonObjectCustomConverterNotAllowedOnExtensionProperty);
755throw new InvalidOperationException(SR.Format(SR.MetadataReferenceOfTypeCannotBeAssignedToType, referenceId, currentType, typeToConvert));
762throw new InvalidOperationException(SR.Format(SR.JsonPropertyInfoBoundToDifferentParent, propertyInfo.Name, propertyInfo.ParentTypeInfo.Type.FullName));
803throw new InvalidOperationException(SR.Format(SR.NoMetadataForType, type, resolver?.ToString() ?? "<null>"));
808return new InvalidOperationException(SR.Format(SR.NoMetadataForTypeProperties, resolver?.ToString() ?? "<null>", type));
850throw new InvalidOperationException(SR.Format(SR.Polymorphism_TypeDoesNotSupportPolymorphism, baseType));
856throw new InvalidOperationException(SR.Format(SR.Polymorphism_DerivedTypeIsNotSupported, derivedType, baseType));
862throw new InvalidOperationException(SR.Format(SR.Polymorphism_DerivedTypeIsAlreadySpecified, baseType, derivedType));
868throw new InvalidOperationException(SR.Format(SR.Polymorphism_TypeDicriminatorIdIsAlreadySpecified, baseType, typeDiscriminator));
874throw new InvalidOperationException(SR.Polymorphism_InvalidCustomTypeDiscriminatorPropertyName);
880throw new InvalidOperationException(SR.Format(SR.Polymorphism_ConfigurationDoesNotSpecifyDerivedTypes, baseType));
886throw new InvalidOperationException(SR.Format(SR.InvalidEnumTypeWithSpecialChar, enumType.Name, enumName));
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (5)
System.Text.RegularExpressions.Generator (1)
System.Threading (16)
System.Threading.Channels (5)
System.Threading.Tasks.Dataflow (11)
System.Threading.Tasks.Parallel (13)
System.Transactions.Local (6)
System.Windows.Controls.Ribbon (38)
System.Windows.Input.Manipulations (4)
System.Xaml (51)
System\Xaml\XamlXmlWriter.cs (11)
395throw new InvalidOperationException(SR.Format(SR.PrefixNotInFrames, prefix));
1029throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember"));
1036throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember"));
1080throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteEndObject"));
1239throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteValue"));
1276throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, value, containingXamlType.Name));
1369throw new InvalidOperationException(SR.XamlXmlWriterWriteObjectNotSupportedInCurrentState);
1381throw new InvalidOperationException(SR.XamlXmlWriterIsObjectFromMemberSetForArraysOrNonCollections);
1474throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, writer.deferredValue, containingXamlType.Name));
2019throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, operation));
2044throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteGetObject"));
Templates.Blazor.Tests (17)
Templates.Blazor.WebAssembly.Auth.Tests (22)
Templates.Blazor.WebAssembly.Tests (22)
Templates.Mvc.Tests (22)
Templates.Tests (22)
TestExclusionListTasks (3)
UIAutomationClient (40)
UIAutomationClientSideProviders (95)
UIAutomationTypes (3)
VersioningWebSite (1)
Wasm.Performance.ConsoleHost (1)
Wasm.Performance.Driver (1)
WindowsFormsIntegration (2)
XmlFormattersWebSite (1)
xunit.console (3)