385 references to InvalidOperationException
aspire (11)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (1)
136throw new InvalidOperationException("Aspire skills bundle manifest is invalid.", ex);
Agents\McpConfigFileHelper.cs (1)
88throw new InvalidOperationException(
Commands\PipelineCommandBase.cs (1)
322throw new InvalidOperationException("Run completed without returning a backchannel.", innerException);
Configuration\ConfigurationService.cs (1)
478throw new InvalidOperationException(
Profiling\ProfileCaptureService.cs (1)
120throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardFailedToStart, ex.Message), ex);
Projects\JavaAppHostToolchainResolver.cs (1)
478throw new InvalidOperationException(
src\Shared\IConfigurationExtensions.cs (2)
135throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex); 172throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex);
src\Shared\IntegrationPackageProbeManifest.cs (1)
352throw new InvalidOperationException(invalidPathMessage, ex);
Utils\ConfigurationHelper.cs (1)
277throw new InvalidOperationException(
Utils\ConsoleActivityLogger.cs (1)
788throw new InvalidOperationException(
aspire-managed (1)
src\Shared\IntegrationPackageProbeManifest.cs (1)
352throw new InvalidOperationException(invalidPathMessage, ex);
Aspire.Azure.Messaging.EventHubs (1)
EventProcessorClientComponent.cs (1)
120throw new InvalidOperationException(
Aspire.Dashboard (5)
Model\GenAI\GenAIMessages.cs (1)
237var wrappedEx = new InvalidOperationException($"Error reading message part '{type ?? "(missing)"}': {ex.Message}", ex);
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
572throw new InvalidOperationException(
ServiceClient\Partials.cs (1)
53throw new InvalidOperationException($@"Error converting resource ""{Name}"" to {nameof(ResourceViewModel)}.", ex);
src\Shared\IConfigurationExtensions.cs (2)
135throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex); 172throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex);
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\TraceTests.cs (1)
910throw new InvalidOperationException($"Error adding trace number {i}.", ex);
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
279throw new InvalidOperationException($"Error deleting '{TestRootPath}'.", ex);
Aspire.Hosting (6)
Dashboard\InteractionFileUploadStore.cs (1)
325return new InvalidOperationException($"Submitted files for input '{inputName}' do not match the completed uploads.", innerException);
DistributedApplicationOptions.cs (1)
231throw new InvalidOperationException($"Failed to load AppHost assembly '{AssemblyName}' specified in {nameof(DistributedApplicationOptions)}.", ex);
Pipelines\DistributedApplicationPipeline.cs (2)
889var wrappedException = new InvalidOperationException(message, ex); 1148throw new InvalidOperationException(
src\Shared\IConfigurationExtensions.cs (2)
135throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex); 172throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex);
Aspire.Hosting.Azure (3)
AzureProvisioningController.cs (2)
1138: new InvalidOperationException(message, failureException); 4012FailProvisioning(resource.AzureResource, new InvalidOperationException($"Unable to provision {resource.AzureResource.Name}.", ex));
Provisioning\Internal\BicepCompiler.cs (1)
74throw new InvalidOperationException(
Aspire.Hosting.Browsers (6)
BrowserLogsCdpConnection.cs (1)
291terminalException = new InvalidOperationException(
BrowserLogsCdpConnectionMultiplexer.cs (1)
99var connectionException = new InvalidOperationException("Tracked browser CDP event handler failed.", ex);
BrowserLogsRunningSession.cs (1)
189throw new InvalidOperationException("Tracked browser screenshot capture returned invalid image data.", ex);
ChromiumBrowserResolver.cs (3)
94throw new InvalidOperationException( 100throw new InvalidOperationException( 106throw new InvalidOperationException(
Aspire.Hosting.Browsers.Tests (10)
BrowserConnectionDiagnosticsLoggerTests.cs (3)
23new InvalidOperationException("Connecting to the tracked browser debug endpoint failed.", new TimeoutException("Timed out waiting for a tracked browser protocol response to 'Target.attachToTarget'."))); 28new InvalidOperationException("Attaching to the tracked browser target failed.", new TimeoutException("Timed out waiting for a tracked browser protocol response to 'Target.attachToTarget'."))); 30new InvalidOperationException("Connecting to the tracked browser debug endpoint failed.", new WebSocketException("Connection refused")));
BrowserLogsBuilderExtensionsTests.cs (1)
1137NextStartException = new InvalidOperationException("Launch failed.", new TimeoutException("CDP timed out."))
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnection.cs (1)
291terminalException = new InvalidOperationException(
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnectionMultiplexer.cs (1)
99var connectionException = new InvalidOperationException("Tracked browser CDP event handler failed.", ex);
src\Aspire.Hosting.Browsers\BrowserLogsRunningSession.cs (1)
189throw new InvalidOperationException("Tracked browser screenshot capture returned invalid image data.", ex);
src\Aspire.Hosting.Browsers\ChromiumBrowserResolver.cs (3)
94throw new InvalidOperationException( 100throw new InvalidOperationException( 106throw new InvalidOperationException(
Aspire.Hosting.GitHub.Models (2)
src\Shared\IConfigurationExtensions.cs (2)
135throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex); 172throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex);
Aspire.Hosting.Kubernetes (3)
Deployment\HelmVersionValidator.cs (1)
80throw new InvalidOperationException(
KubernetesHelmChartExtensions.cs (2)
468throw new InvalidOperationException( 483throw new InvalidOperationException(
Aspire.Hosting.Maui (2)
src\Shared\IConfigurationExtensions.cs (2)
135throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex); 172throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex);
Aspire.Hosting.OpenAI (2)
src\Shared\IConfigurationExtensions.cs (2)
135throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex); 172throw new InvalidOperationException($"Error parsing URIs from configuration value '{key}'.", ex);
Aspire.Hosting.Radius (3)
Secrets\SealedSecretManifest.cs (3)
73throw new InvalidOperationException( 85throw new InvalidOperationException( 683new(
Aspire.Hosting.RemoteHost (2)
Ats\CapabilityDispatcher.cs (1)
672throw new InvalidOperationException(ex.Message, ex);
src\Shared\IntegrationPackageProbeManifest.cs (1)
352throw new InvalidOperationException(invalidPathMessage, ex);
Aspire.Hosting.RemoteHost.Tests (2)
CodeGenerationDiagnosticBuilderTests.cs (2)
76var outer = new InvalidOperationException("wrapper", inner); 145var exception = new InvalidOperationException("outer", new MissingMethodException("inner"));
Aspire.Hosting.TestUtilities (1)
Utils\DockerUtils.cs (1)
105throw new InvalidOperationException(message, runtimeResolution.DetectionException);
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
198throw new InvalidOperationException(exceptionMessage, innerException);
Aspire.RabbitMQ.Client.v6.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
198throw new InvalidOperationException(exceptionMessage, innerException);
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
279throw new InvalidOperationException($"Error deleting '{TestRootPath}'.", ex);
dotnet-svcutil-lib (40)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (3)
114throw new InvalidOperationException(string.Format(ResXml.XmlSerializerExpired, assembly.FullName, /*assembly.CodeBase*/ null), missingMethod); 191throw new InvalidOperationException(ResXml.XmlNoPartialTrust, e); 225throw new InvalidOperationException(ResXml.XmlNoPartialTrust, e);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (1)
195throw new InvalidOperationException(string.Format(ResXml.XmlSerializerUnsupportedMember, member.DeclaringType.FullName + "." + member.Name, type.FullName), typeDesc.Exception);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (1)
174return new InvalidOperationException(string.Format(ResXml.XmlReflectionError, context), e);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (3)
370return new InvalidOperationException(string.Format(ResXml.XmlReflectionError, context), e); 375return new InvalidOperationException(string.Format(ResXml.XmlTypeReflectionError, context), e); 380return new InvalidOperationException(string.Format(model.IsProperty ? ResXml.XmlPropertyReflectionError : ResXml.XmlFieldReflectionError, model.Name), e);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (2)
802throw new InvalidOperationException(GetSchemaItem(source, null, message), exception); 818throw new InvalidOperationException(string.Format(ResXml.XmlSchemaSyntaxErrorDetails, ns, message, exception.LineNumber, exception.LinePosition), exception);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (3)
398throw new InvalidOperationException(ResXml.XmlGenError, e); 494throw new InvalidOperationException(string.Format(ResXml.XmlSerializeErrorDetails, lineInfo.LineNumber.ToString(), lineInfo.LinePosition.ToString()), e); 498throw new InvalidOperationException(ResXml.XmlSerializeError, e);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
224throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_CreateWebSocketFailed, _connectionFactory.GetType().Name), e));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FaultConverter.cs (1)
46Exception error = new InvalidOperationException(text, exception);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1167throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (9)
636throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 757throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 804throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 816throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 833throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 964throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 978throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 1017throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 1067throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (1)
147return new InvalidOperationException(errorMessage, e);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataImporter.cs (1)
142return new InvalidOperationException(errorMessage, e);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (4)
487throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 492throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 501throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 506throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (2)
1205return new InvalidOperationException(errorMessage, e); 1223return new InvalidOperationException(errorMessage, e);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (3)
1897return new InvalidOperationException(errorMessage, e); 1911return new InvalidOperationException(errorMessage, e); 1917: base(message, innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (2)
491return new InvalidOperationException(string.Format(SRServiceModel.SFxChannelDispatcherUnableToOpen1, _listener.Uri), e); 495return new InvalidOperationException(string.Format(SRServiceModel.SFxChannelDispatcherUnableToOpen2, _listener.Uri, endpointContractNames), e);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
423throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxMessageContractRequiresDefaultConstructor, messageContractType.FullName), mme));
dotnet-user-jwts (1)
_generated\0\BindingExtensions.g.cs (1)
198throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(int)}'.", exception);
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
181throw new InvalidOperationException(GetResourceString(resource), e);
Infrastructure.Common (2)
CertificateManager.cs (2)
122throw new InvalidOperationException(exceptionString.ToString(), inner); 159throw new InvalidOperationException($"Error while attempting to install cert with thumbprint '{certificate.Thumbprint}' into OSX custom keychain.", inner);
Microsoft.Analyzers.Local.Tests (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.AspNetCore.AsyncState (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
157throw new InvalidOperationException("An error was returned from the RemoteSignOut event.", remoteSignOutContext.Result.Failure); 354throw new InvalidOperationException("An error was returned from the SignedOutCallbackRedirect event.", signOut.Result.Failure);
Microsoft.AspNetCore.Components (1)
Reflection\ComponentProperties.cs (1)
190throw new InvalidOperationException(
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
232throw new InvalidOperationException(
Microsoft.AspNetCore.Components.Web (3)
Forms\InputExtensions.cs (1)
48throw new InvalidOperationException($"{input.GetType()} does not support the type '{typeof(TValue)}'.", ex);
WebEventData\WebEventData.cs (2)
29throw new InvalidOperationException("Error parsing the event descriptor", e); 87throw new InvalidOperationException($"There was an error parsing the event arguments. EventId: '{eventHandlerId}'.", e);
Microsoft.AspNetCore.Components.WebAssembly (2)
Prerendering\WebAssemblyComponentParameterDeserializer.cs (2)
67throw new InvalidOperationException($"Could not parse the parameter value for parameter '{definition.Name}' of type '{definition.TypeName}' and assembly '{definition.Assembly}'.", e); 107throw new InvalidOperationException($"Could not parse the parameter value for parameter '{definition.Name}' of type '{definition.TypeName}' and assembly '{definition.Assembly}'.", e);
Microsoft.AspNetCore.Connections.Abstractions (1)
Exceptions\AddressInUseException.cs (1)
26public AddressInUseException(string message, Exception inner) : base(message, inner)
Microsoft.AspNetCore.DataProtection (2)
Error.cs (1)
103return new InvalidOperationException(Resources.KeyRingProvider_RefreshFailedOnOtherThread, inner);
TypeExtensions.cs (1)
40throw new InvalidOperationException($"Unable to load type '{typeName}'. If the app is published with trimming then this type may have been trimmed. Ensure the type's assembly is excluded from trimming.", ex);
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
268edi = ExceptionDispatchInfo.Capture(new InvalidOperationException($"The exception handler configured on {nameof(ExceptionHandlerOptions)} produced a 404 status response. " +
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
MigrationsEndPointMiddleware.cs (1)
90throw new InvalidOperationException(message, ex);
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (3)
383throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(T)}'.", exception); 395throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(global::System.TimeSpan)}'.", exception); 407throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(int)}'.", exception);
Logging\Internal\LoggingRedactionOptionsConfigureOptions.cs (1)
121=> new($"Failed to convert configuration value at '{path}' to type '{type}'.", innerException);
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Internal\Binding\JsonTranscodingProviderServiceBinder.cs (1)
228throw new InvalidOperationException($"Error binding {method.Name} on {typeof(TService).Name} to HTTP API.", ex);
Internal\Binding\JsonTranscodingServiceMethodProvider.cs (1)
85throw new InvalidOperationException($"Error binding gRPC service '{typeof(TService).Name}'.", ex);
Internal\JsonRequestHelpers.cs (2)
83throw new InvalidOperationException($"Unable to read the request as JSON because the request content type charset '{charset}' is not a known encoding.", ex); 114throw new InvalidOperationException($"Error when parsing the '{StatusDetailsTrailerName}' trailer.", ex);
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (1)
57throw new InvalidOperationException($"Error parsing path template '{_input}'.", ex);
Microsoft.AspNetCore.HeaderParsing (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
241throw new InvalidOperationException($"Failed to convert configuration value at '{path}' to type '{typeof(int)}'.", exception);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostBuilder.cs (1)
156exceptions.Add(new InvalidOperationException($"Startup assembly {assemblyName} failed to execute. See the inner exception for more details.", ex));
Internal\ConfigureBuilder.cs (1)
46throw new InvalidOperationException(string.Format(
WebHostBuilder.cs (1)
251exceptions.Add(new InvalidOperationException($"Startup assembly {assemblyName} failed to execute. See the inner exception for more details.", ex));
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\WebSocketsTransport.cs (1)
415throw new InvalidOperationException("Reconnect attempt failed.", innerException: ex);
Microsoft.AspNetCore.Http.Extensions (1)
HttpRequestJsonExtensions.cs (1)
425throw new InvalidOperationException($"Unable to read the request as JSON because the request content type charset '{charset}' is not a known encoding.", ex);
Microsoft.AspNetCore.Mvc.Core (2)
Filters\MiddlewareFilterConfigurationProvider.cs (1)
110throw new InvalidOperationException(
ModelBinding\Metadata\ModelAttributes.cs (1)
235throw new InvalidOperationException("Only one ModelMetadataType attribute is permitted per type.", e);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ExpressionHelper.cs (1)
225throw new InvalidOperationException(
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Certificates\CertificateConfigLoader.cs (1)
260return new InvalidOperationException($"Error getting private key from '{keyPath}'.", ex);
Internal\Http3\Http3FrameWriter.cs (1)
378throw new InvalidOperationException(ex.Message, ex); // Report the error to the user if this was the first write.
Internal\Infrastructure\HttpUtilities.cs (1)
173throw new InvalidOperationException(ex.Message, ex);
Microsoft.AspNetCore.SpaServices.Extensions (5)
AngularCli\AngularCliBuilder.cs (2)
74throw new InvalidOperationException( 81throw new InvalidOperationException(
AngularCli\AngularCliMiddleware.cs (1)
81throw new InvalidOperationException(
Npm\NodeScriptRunner.cs (1)
141throw new InvalidOperationException(message, ex);
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
95throw new InvalidOperationException(
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
200throw new InvalidOperationException("An error occurred when completing the request. Request delegate may have finished while there is a pending read of the request body.", ex);
Microsoft.AspNetCore.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Build (1)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ThrowHelper.cs (1)
181throw new InvalidOperationException(GetResourceString(resource), e);
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\Node\OutOfProcRarNode.cs (1)
52shutdownException = new InvalidOperationException("RAR node is already running.", ex);
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
239throw new InvalidOperationException($"Unable to load {assemblyName.Name}: {ex.Message}", ex);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
181throw new InvalidOperationException(GetResourceString(resource), e);
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
181throw new InvalidOperationException(GetResourceString(resource), e);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
181throw new InvalidOperationException(GetResourceString(resource), e);
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
181throw new InvalidOperationException(GetResourceString(resource), e);
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
181throw new InvalidOperationException(GetResourceString(resource), e);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
181throw new InvalidOperationException(GetResourceString(resource), e);
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
239throw new InvalidOperationException($"Unable to load {assemblyName.Name}: {ex.Message}", ex);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
181throw new InvalidOperationException(GetResourceString(resource), e);
Microsoft.Extensions.AI (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AI.Abstractions (2)
Contents\FunctionCallContent.cs (1)
97parsingException = new InvalidOperationException("Error parsing function call arguments.", ex);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AI.Abstractions.Tests (1)
Contents\FunctionCallContentTests.cs (1)
163var ex = new InvalidOperationException("hello", new NullReferenceException("bye"));
Microsoft.Extensions.AI.Evaluation (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AI.Evaluation.Console (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AI.Evaluation.NLP (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AI.Evaluation.Quality (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AI.Evaluation.Reporting (1)
parent\parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AI.Evaluation.Safety (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AI.Integration.Tests (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AI.OpenAI (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AmbientMetadata.Application (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AmbientMetadata.Build (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.AsyncState (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Caching.Hybrid (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Compliance.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Compliance.Redaction (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
171throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(int)}'.", exception);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Compliance.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Configuration.Binder (7)
ConfigurationBinder.cs (7)
618throw new InvalidOperationException(SR.Format(SR.Error_FailedToActivate, type), ex); 803throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding, 842throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding, 898throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding, 969throw new InvalidOperationException(SR.Format(SR.Error_GeneralErrorWhenBinding, 1012error = new InvalidOperationException(SR.Format(SR.Error_FailedBinding, value, path, type), ex); 1028error = new InvalidOperationException(SR.Format(SR.Error_FailedBinding, value, path, type), ex);
Microsoft.Extensions.DataIngestion (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.DataIngestion.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.DataIngestion.Markdig (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.DataIngestion.MarkItDown (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.DependencyInjection (1)
ServiceProvider.cs (1)
253throw new InvalidOperationException($"Error while validating the service descriptor '{descriptor}': {e.Message}", e);
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
173throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(bool)}'.", exception);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (3)
266throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(double)}'.", exception); 278throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(global::System.TimeSpan)}'.", exception); 290throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(bool)}'.", exception);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Diagnostics.Probes (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
248throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(int)}'.", exception); 260throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(global::System.TimeSpan)}'.", exception);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
278throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(global::System.TimeSpan)}'.", exception); 290throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(bool)}'.", exception);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Diagnostics.Testing (7)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (6)
1530throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(T)}'.", exception); 1546throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(bool)}'.", exception); 1558throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(int)}'.", exception); 1571throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(Guid)}'.", exception); 1589throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(long)}'.", exception); 1602throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(TimeSpan)}'.", exception);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Hosting.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Http (1)
DefaultTypedHttpClientFactory.cs (1)
46throw new InvalidOperationException(SR.Format(SR.TypedClient_NoHttpClientCtor, typeof(TClient).Name), iox);
Microsoft.Extensions.Http.Diagnostics (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
173throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(bool)}'.", exception);
Logging\Internal\LoggingOptionsConfigureOptions.cs (1)
138=> new($"Failed to convert configuration value at '{path}' to type '{type}'.", innerException);
Microsoft.Extensions.Http.Resilience (7)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (6)
651throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(global::System.TimeSpan)}'.", exception); 663throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(int)}'.", exception); 679throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(T)}'.", exception); 691throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(double)}'.", exception); 704throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(bool)}'.", exception); 717throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(global::System.Uri)}'.", exception);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Logging.Configuration (1)
_generated\0\BindingExtensions.g.cs (1)
80throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(bool)}'.", exception);
Microsoft.Extensions.Logging.Console (4)
_generated\0\BindingExtensions.g.cs (4)
570throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(T)}'.", exception); 582throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(bool)}'.", exception); 594throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(int)}'.", exception); 606throw new InvalidOperationException($"Failed to convert configuration value '{value ?? "null"}' at '{path}' to type '{typeof(char)}'.", exception);
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Options.Contextual (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Resilience (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.ServiceDiscovery (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.ServiceDiscovery.Dns (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Telemetry (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (4)
483throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(bool)}'.", exception); 495throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(int)}'.", exception); 507throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(double)}'.", exception); 523throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(T)}'.", exception);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.Telemetry.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.TimeProvider.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Extensions.VectorData.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
Microsoft.Maui.Controls (2)
ListProxy.cs (1)
332 throw new InvalidOperationException("You must call UpdateNonNotifyingList() after updating a list that does not implement INotifyCollectionChanged", ioex);
ShadowTypeConverter.cs (1)
127 throw new InvalidOperationException($"Cannot convert \"{strValue}\" into {typeof(Shadow)}.", ex);
Microsoft.Maui.Essentials (1)
Types\Shared\Exceptions.shared.cs (1)
105 : base(message, innerException)
Microsoft.ML.AutoML (2)
Sweepers\SmacSweeper.cs (1)
249throw new InvalidOperationException("SMAC sweeper localSearch threw exception", e);
Tuner\SmacTuner.cs (1)
254throw new InvalidOperationException("SMAC sweeper localSearch threw exception", e);
Microsoft.ML.Core (4)
Utilities\Contracts.cs (4)
268=> Process(new InvalidOperationException(msg, inner)); 270=> Process(new InvalidOperationException(msg, inner), ctx); 272=> Process(new InvalidOperationException(GetMsg(msg, args), inner)); 274=> Process(new InvalidOperationException(GetMsg(msg, args), inner), ctx);
Microsoft.ML.CpuMath (4)
src\Microsoft.ML.Core\Utilities\Contracts.cs (4)
268=> Process(new InvalidOperationException(msg, inner)); 270=> Process(new InvalidOperationException(msg, inner), ctx); 272=> Process(new InvalidOperationException(GetMsg(msg, args), inner)); 274=> Process(new InvalidOperationException(GetMsg(msg, args), inner), ctx);
Microsoft.ML.Tokenizers (1)
Model\TiktokenTokenizer.cs (1)
233throw new InvalidOperationException($"Failed to load from BPE vocab file stream: {ex.Message}", ex);
NuGet.PackageManagement (12)
NuGetPackageManager.cs (7)
1319throw new InvalidOperationException(aggregateEx.Message, aggregateEx); 1325throw new InvalidOperationException(Strings.PackagesCouldNotBeInstalled, ex); 1327throw new InvalidOperationException(ex.Message, ex); 1805throw new InvalidOperationException(alreadyInstalledMessage, new PackageAlreadyInstalledException(alreadyInstalledMessage)); 2009throw new InvalidOperationException(aggregateEx.Message, aggregateEx); 2015throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.PackageCouldNotBeInstalled, packageIdentity), ex); 2017throw new InvalidOperationException(ex.Message, ex);
Projects\ProjectJsonNuGetProject.cs (2)
323throw new InvalidOperationException( 342throw new InvalidOperationException(
Resolution\ResolverGather.cs (3)
466throw new InvalidOperationException(message, ex); 472throw new InvalidOperationException(message, ex); 665throw new InvalidOperationException(message, ex);
PresentationCore (11)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
427throw new InvalidOperationException(SR.ByteRangeDownloaderErroredOut, _erroredOutException);
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (7)
797return new System.InvalidOperationException(SR.Image_WrongState, exceptionForHR); 810return new System.InvalidOperationException(SR.WIC_NotInitialized, exceptionForHR); 822return new System.InvalidOperationException(SR.Image_CodecPresent, exceptionForHR); 828return new System.InvalidOperationException(SR.Image_NoPalette, exceptionForHR); 834return new System.InvalidOperationException(SR.Image_InternalError, exceptionForHR); 860return new System.InvalidOperationException(SR.Image_StreamWrite, exceptionForHR); 908return new System.InvalidOperationException(SR.Image_DisplayStateInvalid, exceptionForHR);
System\Windows\Markup\XmlLanguage.cs (2)
200throw new InvalidOperationException(SR.Format(SR.XmlLangGetCultureFailure, lowerCaseTag), e); 253throw new InvalidOperationException(SR.Format(SR.XmlLangGetSpecificCulture, _lowerCaseTag), e);
System\Windows\Media\textformatting\TextParagraphCache.cs (1)
76throw new InvalidOperationException(SR.Format(SR.CreateParaBreakingSessionFailure, lserr), callbackException);
PresentationFramework (5)
MS\Internal\AppModel\AppSecurityManager.cs (1)
136throw new InvalidOperationException(SR.FailToLaunchDefaultBrowser,
MS\Internal\Data\RBTree.cs (1)
125throw new InvalidOperationException(SR.InvalidOperation_IComparerFailed, e);
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
575throw new InvalidOperationException(SR.CannotParseId, fe);
System\Windows\Controls\DataGrid.cs (1)
7103throw new InvalidOperationException(SR.DataGrid_ProbableInvalidSortDescription, invalidOperationException);
System\Windows\Controls\ItemContainerGenerator.cs (1)
1101throw new InvalidOperationException(SR.Generator_Inconsistent, exception);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
181throw new InvalidOperationException(GetResourceString(resource), e);
SelectTests (1)
Program.cs (1)
481throw new InvalidOperationException($"Layer 1 (affected-projects graph) failed: {inner.Message}", inner);
Shared (1)
Throw\Throw.cs (1)
410=> throw new InvalidOperationException(message, innerException);
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\CatalogReflectionContextAttribute.cs (1)
36throw new InvalidOperationException(SR.ReflectionContext_Type_Required, invalidCastException);
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (2)
176throw new InvalidOperationException(SR.InvalidOperation_RevertAndCompleteActionsMustNotThrow, new AggregateException(exceptions)); 211throw new InvalidOperationException(SR.InvalidOperation_RevertAndCompleteActionsMustNotThrow, new AggregateException(exceptions));
System.Data.Odbc (1)
Common\System\Data\Common\AdapterUtil.Odbc.cs (1)
64InvalidOperationException e = new InvalidOperationException(error, inner);
System.Data.OleDb (1)
System\Data\Common\AdapterUtil.cs (1)
142InvalidOperationException e = new InvalidOperationException(error, inner);
System.Diagnostics.EventLog (4)
System\Diagnostics\EventLogInternal.cs (4)
428throw new InvalidOperationException(SR.CantMonitorEventLog, new Win32Exception()); 769throw new InvalidOperationException(SR.CantRetrieveEntries, new Win32Exception(error)); 930throw new InvalidOperationException(SR.Format(SR.CantReadLogEntryAt, index.ToString()), new Win32Exception()); 1108throw new InvalidOperationException(SR.Format(SR.CantOpenLogAccess, sourceName), e);
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\PerformanceCounterLib.cs (1)
1340throw new InvalidOperationException(SR.Format(SR.CounterDataCorrupt, perfDataKey.ToString()), e);
System.DirectoryServices (2)
System\DirectoryServices\ActiveDirectory\Exception.cs (2)
327exception = new InvalidOperationException(errorMessage, e); 334exception = new InvalidOperationException(errorMessage, e);
System.DirectoryServices.AccountManagement (2)
System\DirectoryServices\AccountManagement\exceptions.cs (2)
296exception = new InvalidOperationException(errorMessage, e); 303exception = new InvalidOperationException(errorMessage, e);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.cs (1)
550throw new InvalidOperationException(new InvalidOperationException().Message, e);
System.Net.Http (1)
System\Net\Http\HttpContent.cs (1)
156throw new InvalidOperationException(SR.net_http_content_invalid_charset, e);
System.Net.Http.Json (1)
System\Net\Http\Json\JsonHelpers.cs (1)
50throw new InvalidOperationException(SR.CharSetInvalid, e);
System.Net.Ping (1)
System\Net\NetworkInformation\PingException.cs (1)
19base(message, innerException)
System.Net.Requests (1)
System\Net\WebException.cs (1)
45base(message, innerException)
System.Private.CoreLib (7)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ObjectDisposedException.cs (1)
39: base(message ?? SR.ObjectDisposed_Generic, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\FileBasedResourceGroveler.cs (1)
103throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResMgrBadResSet_Type, _mediator.UserResourceSet.AssemblyQualifiedName), e);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
265throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResMgrBadResSet_Type, _mediator.UserResourceSet.AssemblyQualifiedName), e);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\SwitchExpressionException.cs (2)
22base(SR.Arg_SwitchExpressionException, innerException) 41: base(message ?? SR.Arg_SwitchExpressionException, innerException) { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.Unix.cs (1)
496throw new InvalidOperationException(SR.Threading_WaitHandleTooManyPosts, ex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
398throw new InvalidOperationException(GetResourceString(resource), e);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
353throw new InvalidOperationException(SR.GenericCallbackException, e);
System.Private.Xml (13)
System\Xml\Serialization\Compilation.cs (3)
77throw new InvalidOperationException(ex.Message, ex); 676throw new InvalidOperationException(SR.XmlNoPartialTrust, e); 703throw new InvalidOperationException(SR.XmlNoPartialTrust, e);
System\Xml\Serialization\Models.cs (1)
210throw new InvalidOperationException(SR.Format(SR.XmlSerializerUnsupportedMember, $"{member.DeclaringType!.FullName}.{member.Name}", type.FullName), typeDesc.Exception);
System\Xml\Serialization\SoapReflectionImporter.cs (1)
139return new InvalidOperationException(SR.Format(SR.XmlReflectionError, context), e);
System\Xml\Serialization\XmlReflectionImporter.cs (3)
376return new InvalidOperationException(SR.Format(SR.XmlReflectionError, context), e); 381return new InvalidOperationException(SR.Format(SR.XmlTypeReflectionError, context), e); 386return new InvalidOperationException(SR.Format(model.IsProperty ? SR.XmlPropertyReflectionError : SR.XmlFieldReflectionError, model.Name), e);
System\Xml\Serialization\XmlSchemas.cs (2)
694throw new InvalidOperationException(GetSchemaItem(source, null, message), exception); 710throw new InvalidOperationException(SR.Format(SR.XmlSchemaSyntaxErrorDetails, ns, message, exception.LineNumber, exception.LinePosition), exception);
System\Xml\Serialization\XmlSerializer.cs (3)
416throw new InvalidOperationException(SR.XmlGenError, e); 521throw new InvalidOperationException(SR.Format(SR.XmlSerializeErrorDetails, lineInfo.LineNumber.ToString(CultureInfo.InvariantCulture), lineInfo.LinePosition.ToString(CultureInfo.InvariantCulture)), e); 525throw new InvalidOperationException(SR.XmlSerializeError, e);
System.Security.Cryptography.Cose (4)
System\Security\Cryptography\Cose\CoseHeaderValue.cs (4)
137throw new InvalidOperationException(SR.CoseHeaderValueErrorWhileDecoding, ex); 164throw new InvalidOperationException(SR.CoseHeaderValueErrorWhileDecoding, ex); 191throw new InvalidOperationException(SR.CoseHeaderValueErrorWhileDecoding, ex); 223throw new InvalidOperationException(SR.CoseHeaderValueErrorWhileDecoding, ex);
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1282throw FxTrace.Exception.AsError(new InvalidOperationException(SR.Format(
System.ServiceModel.Primitives (11)
System\ServiceModel\Channels\FaultConverter.cs (1)
47Exception error = new InvalidOperationException(text, exception);
System\ServiceModel\Channels\MessageHeaders.cs (2)
1097new InvalidOperationException(message, new ProtocolException(message))); 1473new InvalidOperationException(message, new ProtocolException(message)));
System\ServiceModel\Description\ServiceReflector.cs (4)
524throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 529throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 538throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 543throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (2)
472return new InvalidOperationException(SRP.Format(SRP.SFxChannelDispatcherUnableToOpen1, _listener.Uri), e); 476return new InvalidOperationException(SRP.Format(SRP.SFxChannelDispatcherUnableToOpen2, _listener.Uri, endpointContractNames), e);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
525throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMessageContractRequiresDefaultConstructor, messageContractType.FullName), mme));
System.ServiceProcess.ServiceController (11)
System\ServiceProcess\ServiceController.cs (11)
542throw new InvalidOperationException(SR.Format(SR.NoService, userGivenName, _machineName), new Win32Exception(Interop.Errors.ERROR_SERVICE_DOES_NOT_EXIST)); 556throw new InvalidOperationException(SR.Format(SR.NoService, _name, _machineName), new Win32Exception(Interop.Errors.ERROR_SERVICE_DOES_NOT_EXIST)); 589throw new InvalidOperationException(SR.Format(SR.NoService, serviceDisplayName, _machineName), new Win32Exception(lastError)); 619throw new InvalidOperationException(SR.Format(SR.NoService, serviceName, _machineName), new Win32Exception(lastError)); 640throw new InvalidOperationException(SR.Format(SR.OpenSC, machineName), inner); 691throw new InvalidOperationException(SR.Format(SR.OpenService, ServiceName, _machineName), inner); 812throw new InvalidOperationException(SR.Format(SR.PauseService, ServiceName, _machineName), inner); 827throw new InvalidOperationException(SR.Format(SR.ResumeService, ServiceName, _machineName), inner); 843throw new InvalidOperationException(SR.Format(SR.ControlService, ServiceName, MachineName), inner); 901throw new InvalidOperationException(SR.Format(SR.CannotStart, ServiceName, _machineName), inner); 962throw new InvalidOperationException(SR.Format(SR.StopService, ServiceName, _machineName), inner);
System.Text.Json (1)
System\Text\Json\ThrowHelper.cs (1)
587InvalidOperationException ex = new InvalidOperationException(message, innerException);
System.Threading.Channels (2)
System\Threading\Channels\ChannelClosedException.cs (2)
20base(SR.ChannelClosedException_DefaultMessage, innerException) { } 25public ChannelClosedException(string? message, Exception? innerException) : base(message ?? SR.ChannelClosedException_DefaultMessage, innerException) { }
System.Transactions.Local (2)
System\Transactions\TransactionException.cs (2)
49return new InvalidOperationException(messagewithTxId, innerException); 60return new InvalidOperationException(message, innerException);
System.Windows.Forms (6)
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (1)
178throw new InvalidOperationException(SR.RichControlLresult, ex);
System\Windows\Forms\Control.cs (2)
10322throw new InvalidOperationException(SR.DragDropRegFailed, e); 12085throw new InvalidOperationException(SR.RichControlLresult, e);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildNativeWindow.cs (1)
153throw new InvalidOperationException(SR.RichControlLresult, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
184throw new InvalidOperationException(SR.DragDropRegFailed, e);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
615throw new InvalidOperationException(string.Format(
System.Windows.Forms.Design (5)
System\ComponentModel\Design\DesignerHost.cs (1)
348e = new InvalidOperationException(string.Format(SR.DesignSurfaceFatalError, e), e);
System\ComponentModel\Design\DesignSurface.cs (1)
140throw new InvalidOperationException(ex.Message, ex);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2504InvalidOperationException wrapper = new(
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
386throw new InvalidOperationException(SR.DataGridViewDataSourceNoLongerValid, ex); 563throw new InvalidOperationException(SR.DataGridViewDataSourceNoLongerValid, ex);
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\Accessible.cs (2)
533throw new InvalidOperationException(SR.OperationCannotBePerformed, e); 1126throw new InvalidOperationException(SR.OperationCannotBePerformed, e);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (1)
1210throw new InvalidOperationException(SR.OperationCannotBePerformed, e);
UIAutomationTypes (1)
System\Windows\Automation\ElementNotEnabledException.cs (1)
46public ElementNotEnabledException(string message, Exception innerException) : base(message, innerException)
WindowsFormsIntegration (1)
System\Windows\Integration\PropertyMap.cs (1)
320throw new InvalidOperationException(SR.WFI_PropertyMapError, ex);