247 references to DistributedApplicationException
Aspire.Hosting (99)
ApplicationModel\ConnectionStringReference.cs (1)
83internal void ThrowConnectionStringUnavailableException() => throw new DistributedApplicationException($"The connection string for the resource '{Resource.Name}' is not available.");
ApplicationModel\DotnetProgramPublishing.cs (2)
109throw new DistributedApplicationException( 125throw new DistributedApplicationException(
ApplicationModel\ResourceCollection.cs (1)
120throw new DistributedApplicationException($"Cannot add resource of type '{newResource.GetType()}' with name '{newResource.Name}' because resource of type '{existingResource.GetType()}' with that name already exists. Resource names are case-insensitive.");
ApplicationModel\ResourceNotificationService.cs (9)
255throw new DistributedApplicationException($"Stopped waiting for resource '{resourceName}' to become healthy because it does not exist in the application model."); 278throw new DistributedApplicationException($"Stopped waiting for resource '{resourceName}' to become healthy because it failed to start."); 324_ => throw new DistributedApplicationException($"Unexpected wait behavior: {waitBehavior}") 371throw new DistributedApplicationException($"Resource '{resource.Name}' stopped waiting for dependency resource '{displayName}' because it failed to start."); 383throw new DistributedApplicationException( 437throw new DistributedApplicationException($"Resource '{resource.Name}' stopped waiting for dependency resource '{displayName}' because it failed to start."); 449throw new DistributedApplicationException( 472_ => throw new DistributedApplicationException($"Unexpected wait behavior: {waitBehavior}") 587_ => throw new DistributedApplicationException($"Unexpected wait type: {waitAnnotation.WaitType}")
Backchannel\AppHostRpcTarget.cs (1)
187throw new DistributedApplicationException(MessageStrings.PublishModeNotSupportedByRunCommand);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
709throw new DistributedApplicationException($"Stopped waiting for resource '{target.DisplayName}' to become healthy because it failed to start.");
Dashboard\DashboardEventHandlers.cs (2)
106throw new DistributedApplicationException( 119throw new DistributedApplicationException("Dashboard path empty or file does not exist.");
Dcp\ContainerNetworkEndpointProvisioner.cs (4)
145throw new DistributedApplicationException($"Container resource name '{container.Name}' conflicts with the Aspire container tunnel container name '{ContainerTunnelContainerName}'. Rename the resource or disable the Aspire container tunnel."); 151throw new DistributedApplicationException($"Container resource '{container.Name}' uses container name '{containerNameAnnotation.Name}', which conflicts with the Aspire container tunnel container name '{ContainerTunnelContainerName}'. Rename the container or disable the Aspire container tunnel."); 158throw new DistributedApplicationException($"Container resource '{container.Name}' uses network alias '{aliasAnnotation.Alias}', which conflicts with the Aspire container tunnel container name '{ContainerTunnelContainerName}'. Rename the alias or disable the Aspire container tunnel."); 479throw new DistributedApplicationException(
Dcp\DcpDependencyCheck.cs (5)
88throw new DistributedApplicationException(string.Format( 116throw new DistributedApplicationException(string.Format( 161throw new DistributedApplicationException(string.Format( 246throw new DistributedApplicationException(detailedMessage); 262throw new DistributedApplicationException(AppendContainerRuntimeCheckError(message, error));
Dcp\DcpExecutor.cs (4)
527throw new DistributedApplicationException($"One or more container volumes did not become ready: {details}"); 1120throw new DistributedApplicationException($"Couldn't find required {nameof(DcpInstancesAnnotation)} annotation on resource {resource.Name}."); 1131throw new DistributedApplicationException($"Couldn't find required instance ID for index {instanceIndex} on resource {resource.Name}."); 1369throw new DistributedApplicationException($"Failed to delete '{resource.DcpResourceName}' successfully before restart.");
Dcp\ExecutableCreator.cs (1)
317throw new DistributedApplicationException($"Couldn't find required {nameof(DcpInstancesAnnotation)} annotation on resource {resource.Name}.");
Devcontainers\Codespaces\CodespacesOptions.cs (1)
51return configuration.GetValue<string>(key) ?? throw new DistributedApplicationException($"Codespaces was detected but {key} environment missing.");
Devcontainers\DevcontainerSettingsWriter.cs (2)
114throw new DistributedApplicationException($"Failed to acquire semaphore for settings file: {settingsPath}"); 239throw new DistributedApplicationException("Codespaces, Devcontainer, or SSH Remote not detected.");
DistributedApplicationBuilder.cs (2)
155_ => throw new DistributedApplicationException("Invalid operation specified. Valid operations are 'publish', 'run', or 'inspect'.") 896throw new DistributedApplicationException($"Multiple resources with the name '{duplicateResourceName}'. Resource names are case-insensitive.");
Exceptions.cs (1)
9public FailedToApplyEnvironmentException(string message) : base(message) { }
McpServerResourceBuilderExtensions.cs (2)
62throw new DistributedApplicationException( 79throw new DistributedApplicationException(
MissingParameterValueException.cs (1)
23public MissingParameterValueException(string message) : base(message)
Pipelines\DistributedApplicationPipeline.cs (1)
402throw new DistributedApplicationException(
ProjectResourceBuilderExtensions.cs (2)
440throw new DistributedApplicationException(message); 553throw new DistributedApplicationException($"File-based apps are only supported on .NET 10 or later. The version active in '{projectDirectory}' is {version}.");
Publishing\ContainerImageArchiveRewriter.cs (5)
106throw new DistributedApplicationException( 112throw new DistributedApplicationException( 214throw new DistributedApplicationException("The container image archive is empty."); 587throw new DistributedApplicationException( 596return new DistributedApplicationException(
Publishing\ContainerRuntimeBase.cs (6)
369throw new DistributedApplicationException(message); 415throw new DistributedApplicationException(message); 601throw new DistributedApplicationException($"{Name} {operationName} for '{imageName}' failed with exit code {processResult.ExitCode}.{Environment.NewLine}{processResult.GetFormattedOutput()}"); 695throw new DistributedApplicationException(message); 744throw new DistributedApplicationException( 919throw new DistributedApplicationException(
Publishing\ContainerRuntimeReadiness.cs (1)
78throw new DistributedApplicationException(
Publishing\DockerContainerRuntime.cs (3)
162throw new DistributedApplicationException(LocalImageOciArchiveNotSupportedMessage); 177throw new DistributedApplicationException( 209throw new DistributedApplicationException("Docker did not report exactly one active context.");
Publishing\ManifestPublisher.cs (2)
33throw new DistributedApplicationException( 66var manifestPath = _options.Value.OutputPath ?? throw new DistributedApplicationException("The '--output-path [path]' option was not specified even though '--publisher manifest' argument was used.");
Publishing\ManifestPublishingContext.cs (5)
72var manifestDirectory = Path.GetDirectoryName(fullyQualifiedManifestPath) ?? throw new DistributedApplicationException("Could not get directory name of output path"); 134await WriteResourceObjectAsync(resource, () => throw new DistributedApplicationException( 187throw new DistributedApplicationException($"Project metadata was not found for resource '{project.Name}'."); 287throw new DistributedApplicationException( 343throw new DistributedApplicationException($"Could not get the container image name for resource '{container.Name}'.");
Publishing\ManifestPublishingExtensions.cs (1)
38throw new DistributedApplicationException(
Publishing\ProcessFailedException.cs (1)
21: base(message)
Publishing\ResourceContainerImageManager.cs (2)
746throw new DistributedApplicationException( 774throw new DistributedApplicationException(
ResourceBuilderExtensions.cs (27)
463throw new DistributedApplicationException($"The URL parameter '{externalService.Resource.UrlParameter.Name}' for source resource '{externalService.Resource.Name}' is invalid while configuring target resource '{builder.Resource.Name}': {message}"); 1445throw new DistributedApplicationException( 1664throw new DistributedApplicationException($"The URL parameter '{externalService.Resource.UrlParameter.Name}' for source resource '{externalService.Resource.Name}' is invalid while configuring target resource '{builder.Resource.Name}': {message}"); 2807throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for itself."); 2812throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for its parent '{dependency.Resource.Name}'."); 2930throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for itself."); 2935throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for its parent '{dependency.Resource.Name}'."); 3033throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for itself."); 3038throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for its parent '{dependency.Resource.Name}'."); 3093throw new DistributedApplicationException($"Resource '{builder.Resource.Name}' already has a health check with key '{key}'."); 3180?? throw new DistributedApplicationException($"Could not create HTTP health check for resource '{builder.Resource.Name}' as the endpoint selector returned null."); 3184throw new DistributedApplicationException($"Could not create HTTP health check for resource '{builder.Resource.Name}' as the endpoint with name '{endpoint.EndpointName}' and scheme '{endpoint.Scheme}' is not an HTTP endpoint."); 3197throw new DistributedApplicationException($"The endpoint '{endpointName}' does not exist on the resource '{builder.Resource.Name}'."); 3702throw new DistributedApplicationException("Process command output line count must be greater than zero."); 3742throw new DistributedApplicationException("Process command requires a non-empty executable path."); 3750throw new DistributedApplicationException("Process command arguments cannot contain null values."); 3777throw new DistributedApplicationException("Process command environment variables require non-empty names."); 3782throw new DistributedApplicationException($"Process command environment variable '{name}' requires a value."); 3798throw new DistributedApplicationException($"Process command '{processCommandSpec.ExecutablePath}' arguments cannot contain null values."); 3807throw new DistributedApplicationException($"Process command '{processCommandSpec.ExecutablePath}' environment variables require non-empty names."); 3812throw new DistributedApplicationException($"Process command '{processCommandSpec.ExecutablePath}' environment variable '{name}' requires a value."); 4055?? throw new DistributedApplicationException($"Could not create HTTP command for resource '{builder.Resource.Name}' as the endpoint selector returned null."); 4059throw new DistributedApplicationException($"Could not create HTTP command for resource '{builder.Resource.Name}' as the endpoint with name '{endpoint.EndpointName}' and scheme '{endpoint.Scheme}' is not an HTTP endpoint."); 4790throw new DistributedApplicationException($"Could not create {errorDisplayNoun} for resource '{builder.Resource.Name}' as the endpoint with name '{matchingEndpoint.EndpointName}' and scheme '{matchingEndpoint.Scheme}' is not an HTTP endpoint."); 4798throw new DistributedApplicationException($"Could not create {errorDisplayNoun} for resource '{builder.Resource.Name}' as no endpoint was found matching one of the specified names: {endpointNamesString}"); 4818throw new DistributedApplicationException($"Could not create HTTP command for resource '{builder.Resource.Name}' as it has no HTTP endpoints."); 5563var endpoint = endpointSelector() ?? throw new DistributedApplicationException($"Could not create HTTP probe for resource '{builder.Resource.Name}' as the endpoint selector returned null.");
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (3)
20throw new DistributedApplicationException(LaunchProfileStrings.ProjectDoesNotContainMetadataExceptionMessage); 62throw new DistributedApplicationException(message); 79throw new DistributedApplicationException(message);
Aspire.Hosting.Azure (3)
Exceptions.cs (3)
9public AzureCliNotOnPathException(string message) : base(message) { } 16public MissingConfigurationException(string message) : base(message) { } 23public FailedToApplyEnvironmentException(string message) : base(message) { }
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppExtensions.cs (1)
207throw new DistributedApplicationException(
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
118throw new DistributedApplicationException(
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentResource.cs (1)
307throw new DistributedApplicationException("App Service configuration validation failed. See errors above.");
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
118throw new DistributedApplicationException(
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
126throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{builder.Resource.Name}' resource but the connection string was null.");
Aspire.Hosting.Azure.Functions (3)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (3)
20throw new DistributedApplicationException(LaunchProfileStrings.ProjectDoesNotContainMetadataExceptionMessage); 62throw new DistributedApplicationException(message); 79throw new DistributedApplicationException(message);
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentExtensions.cs (1)
128throw new DistributedApplicationException($"The AKS environment '{name}' requires the resource name '{identity.Name}' for its managed identity.");
Aspire.Hosting.Azure.Kusto (5)
AzureKustoBuilderExtensions.cs (5)
128throw new DistributedApplicationException($"ConnectionStringAvailableEvent published for resource '{db.Name}', but the connection string was null."); 243throw new DistributedApplicationException($"ConnectionStringAvailableEvent published for resource '{resource.Name}', but the connection string was null."); 259throw new DistributedApplicationException($"Connection string for Kusto resource '{server.Name}' is not set."); 386throw new DistributedApplicationException($"Connection string for Kusto resource '{resourceBuilder.Resource.Name}' is not set."); 401throw new DistributedApplicationException($"Connection string for Kusto resource '{resourceBuilder.Resource.Name}' is not set.");
Aspire.Hosting.Azure.Sandboxes (1)
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
118throw new DistributedApplicationException(
Aspire.Hosting.Azure.Storage (2)
AzureStorageExtensions.cs (2)
221var blobConnectionString = await builder.Resource.GetBlobConnectionString().GetValueAsync(ct).ConfigureAwait(false) ?? throw new DistributedApplicationException($"{nameof(ConnectionStringAvailableEvent)} was published for the '{builder.Resource.Name}' resource but the connection string was null."); 224var queueConnectionString = await builder.Resource.GetQueueConnectionString().GetValueAsync(ct).ConfigureAwait(false) ?? throw new DistributedApplicationException($"{nameof(ConnectionStringAvailableEvent)} was published for the '{builder.Resource.Name}' resource but the connection string was null.");
Aspire.Hosting.Blazor (3)
BlazorHostedExtensions.cs (3)
320: new DistributedApplicationException(message); 330throw new DistributedApplicationException( 337throw new DistributedApplicationException(
Aspire.Hosting.DevTunnels (12)
DevTunnelCliClient.cs (11)
64throw new DistributedApplicationException($"Failed to get devtunnel CLI version. Output: '{output}'. Error: '{error}'"); 141throw new DistributedApplicationException( 192throw new DistributedApplicationException($"Failed to create dev tunnel '{tunnelId}' after {attempts} attempts. Exit code {exitCode}: {error}"); 210return tunnel ?? throw new DistributedApplicationException($"Failed to get dev tunnel '{tunnelId}'. Exit code {exitCode}: {error}"); 219return ports ?? throw new DistributedApplicationException($"Failed to get port list for dev tunnel '{tunnelId}'. Exit code {exitCode}: {error}"); 300throw new DistributedApplicationException($"Failed to create port '{portNumber}' for tunnel '{tunnelId}' after {attempts} attempts. Exit code {exitCode}: {error}"); 351throw new DistributedApplicationException($"Failed to inspect {description}. Exit code {exitCode}: {error}"); 372throw new DistributedApplicationException($"The devtunnel CLI returned tunnel '{returnedId}' when '{requestedId}' was requested."); 380throw new DistributedApplicationException($"The devtunnel CLI returned port '{port.PortNumber}' when port '{portNumber}' on tunnel '{tunnelId}' was requested."); 510return login ?? throw new DistributedApplicationException($"Failed to get user login status. Exit code {exitCode}: {error}"); 529throw new DistributedApplicationException($"Failed to perform user login. Process finished with exit code: {exitCode}");
DevTunnelResourceBuilderExtensions.cs (1)
136throw new DistributedApplicationException(result.ValidationMessage);
Aspire.Hosting.DevTunnels.Tests (2)
DevTunnelMonitorTests.cs (2)
584throw new DistributedApplicationException("Access query failed."); 635test.Client.GetAccessCallback = (_, _) => throw new DistributedApplicationException("Access query failed.");
Aspire.Hosting.Dotnet (11)
DotnetProjectBuildCoordinator.cs (4)
196throw new DistributedApplicationException( 667throw new DistributedApplicationException( 813throw new DistributedApplicationException( 1197throw new DistributedApplicationException(
DotnetProjectHostingExtensions.cs (2)
172throw new DistributedApplicationException( 451throw new DistributedApplicationException(message);
DotnetProjectRunPropertiesResolver.cs (2)
120throw new DistributedApplicationException( 141throw new DistributedApplicationException(
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (3)
20throw new DistributedApplicationException(LaunchProfileStrings.ProjectDoesNotContainMetadataExceptionMessage); 62throw new DistributedApplicationException(message); 79throw new DistributedApplicationException(message);
Aspire.Hosting.EntityFrameworkCore.Tests (2)
EFBuildReadinessTests.cs (2)
76completion.SetException(new DistributedApplicationException("coordinated build failed")); 135: Task.FromException(new DistributedApplicationException("build failed"));
Aspire.Hosting.Foundry (4)
HostedAgent\AzureHostedAgentResource.cs (1)
433throw new DistributedApplicationException($"The connection string for the resource '{connectionStringReference.Resource.Name}' is not available.");
HostedAgent\HostedAgentConfiguration.cs (3)
148throw new DistributedApplicationException($"Foundry hosted agent for target resource '{targetResourceName}' must declare at least one protocol version."); 164throw new DistributedApplicationException( 182throw new DistributedApplicationException(
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
122throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{garnet.Name}' resource but the connection string was null.");
Aspire.Hosting.Java (19)
JavaDockerfileGenerator.cs (15)
353throw new DistributedApplicationException( 431throw new DistributedApplicationException( 439throw new DistributedApplicationException( 452static message => new DistributedApplicationException(message)); 572throw new DistributedApplicationException( 597throw new DistributedApplicationException( 609throw new DistributedApplicationException( 1007throw new DistributedApplicationException( 1043throw new DistributedApplicationException( 1054throw new DistributedApplicationException( 1060throw new DistributedApplicationException( 1079throw new DistributedApplicationException( 1095throw new DistributedApplicationException( 1152?? throw new DistributedApplicationException( 1175throw new DistributedApplicationException(
JavaHostingExtensions.cs (4)
132throw new DistributedApplicationException( 1251throw new DistributedApplicationException( 1534throw new DistributedApplicationException( 1542throw new DistributedApplicationException(
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
1980throw new DistributedApplicationException(
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
50throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{kafka.Name}' resource but the connection string was null.");
Aspire.Hosting.Kubernetes (4)
KubernetesEnvironmentExtensions.cs (4)
116throw new DistributedApplicationException( 149throw new DistributedApplicationException( 187throw new DistributedApplicationException( 242throw new DistributedApplicationException(
Aspire.Hosting.Maui (6)
MauiiOSExtensions.cs (2)
228throw new DistributedApplicationException( 430throw new DistributedApplicationException(
MauiOtlpExtensions.cs (3)
142var exception = new DistributedApplicationException($"The MAUI OTLP dev tunnel for resource '{parentBuilder.Resource.Name}' requires the Aspire dashboard to be enabled or an explicit OTLP endpoint URL to be configured."); 179var exception = new DistributedApplicationException($"The Aspire dashboard resource '{KnownResourceNames.AspireDashboard}' terminated or does not have a concrete OTLP endpoint named '{KnownEndpointNames.OtlpHttpEndpointName}' or '{KnownEndpointNames.OtlpGrpcEndpointName}', so the MAUI OTLP dev tunnel for resource '{parentBuilder.Resource.Name}' cannot start. Ensure dashboard OTLP ingestion is enabled, or configure an explicit OTLP endpoint URL."); 252throw new DistributedApplicationException($"The configured OTLP endpoint URL '{url}' from '{configKey}' must be an absolute locally reachable HTTP or HTTPS URL with a port between 1 and 65535.");
MauiPlatformHelper.cs (1)
151throw new DistributedApplicationException(
Aspire.Hosting.MongoDB (10)
MongoDBBuilderExtensions.cs (4)
103?? throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{resource.Name}' resource but the connection string was null."); 209?? throw new DistributedApplicationException("The MongoDB REPL port is not available."); 217throw new DistributedApplicationException("The MongoDB REPL credentials are not available."); 280throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{mongoDBDatabase.Name}' resource but the connection string was null.");
MongoDBSingleMemberReplicaSet.cs (2)
57?? throw new DistributedApplicationException($"The connection string for MongoDB resource '{resource.Name}' is unavailable."); 149throw new DistributedApplicationException($"The existing MongoDB replica set configuration does not match single-member set '{name}' at '{host}'. Use its original configuration and data volume; automatic migration or reconfiguration is not supported.");
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (4)
144throw new DistributedApplicationException($"MongoDB replica set member '{memberWithoutTls.Name}' does not have TLS enabled, which is required for members of a replica set. Ensure an HTTPS/TLS certificate is available for the member, for example by trusting the ASP.NET Core developer certificate."); 150?? throw new DistributedApplicationException($"The connection string of MongoDB replica set member '{member.Name}' could not be resolved.") 162.ConfigureAwait(false) ?? throw new DistributedApplicationException($"The endpoint of MongoDB replica set member '{m.Name}' could not be resolved.") 239throw new DistributedApplicationException($"Cannot remove {string.Join(", ", removedHosts.Select(h => $"'{h}'"))} from the existing MongoDB replica set '{rsResource.Name}': removing members from a replica set that has already been initialized is not supported yet. Add the member(s) back, or start over from an empty replica set by removing the data volumes of its members.");
Aspire.Hosting.MySql (5)
MySqlBuilderExtensions.cs (5)
55throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{resource.Name}' resource but the connection string was null."); 63throw new DistributedApplicationException($"ResourceReadyEvent was published for the '{resource.Name}' resource but the connection string was null."); 121var port = resource.PrimaryEndpoint.TargetPort ?? throw new DistributedApplicationException("The MySQL REPL port is not available."); 125throw new DistributedApplicationException("The MySQL REPL password is not available."); 185throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{name}' resource but the connection string was null.");
Aspire.Hosting.Nats (1)
NatsBuilderExtensions.cs (1)
67?? throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{nats.Name}' resource but the connection string was null.");
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
51throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{oracleDatabaseServer.Name}' resource but the connection string was null.");
Aspire.Hosting.PostgreSQL (5)
PostgresBuilderExtensions.cs (5)
72throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{postgresServer.Name}' resource but the connection string was null."); 80throw new DistributedApplicationException($"ResourceReadyEvent was published for the '{postgresServer.Name}' resource but the connection string was null."); 155var port = resource.PrimaryEndpoint.TargetPort ?? throw new DistributedApplicationException("The PostgreSQL REPL port is not available."); 160throw new DistributedApplicationException("The PostgreSQL REPL credentials are not available."); 214throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{name}' resource but the connection string was null.");
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
59?? throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{qdrant.Name}' resource but the connection string was null.");
Aspire.Hosting.RabbitMQ (2)
RabbitMQBuilderExtensions.cs (2)
53throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{rabbitMq.Name}' resource but the connection string was null."); 238throw new DistributedApplicationException($"Cannot configure the RabbitMQ resource '{builder.Resource.Name}' to enable the management plugin as it uses an unrecognized container image registry, name, or tag.");
Aspire.Hosting.Redis (3)
RedisBuilderExtensions.cs (3)
89throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{redis.Name}' resource but the connection string was null."); 244var port = endpoint.TargetPort ?? throw new DistributedApplicationException("The Redis REPL port is not available."); 257throw new DistributedApplicationException("The Redis REPL password is not available.");
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
2444throw new DistributedApplicationException(
Aspire.Hosting.Rust (19)
CargoMetadata.cs (1)
91throw new DistributedApplicationException(
CargoMetadataReader.cs (3)
111throw new DistributedApplicationException( 127throw new DistributedApplicationException( 137throw new DistributedApplicationException(
RustCargoTargetResolver.cs (4)
150[] => throw new DistributedApplicationException( 153var many => throw new DistributedApplicationException( 167?? throw new DistributedApplicationException( 186_ => throw new DistributedApplicationException(
RustDockerfileGenerator.cs (6)
210throw new DistributedApplicationException( 225throw new DistributedApplicationException( 241throw new DistributedApplicationException( 312?? throw new DistributedApplicationException( 340throw new DistributedApplicationException( 371throw new DistributedApplicationException(
RustHostingExtensions.cs (5)
796throw new DistributedApplicationException( 902throw new DistributedApplicationException( 911throw new DistributedApplicationException( 918throw new DistributedApplicationException( 929=> new(
Aspire.Hosting.SqlServer (5)
SqlServerBuilderExtensions.cs (5)
73throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{sqlServer.Name}' resource but the connection string was null."); 82throw new DistributedApplicationException($"ResourceReadyEvent was published for the '{sqlServer.Name}' resource but the connection string was null."); 185throw new DistributedApplicationException("The SQL Server REPL password is not available."); 188var port = resource.PrimaryEndpoint.TargetPort ?? throw new DistributedApplicationException("The SQL Server REPL port is not available."); 254throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{name}' resource but the connection string was null.");
Aspire.Hosting.Tests (4)
DistributedApplicationTests.cs (4)
70throw new DistributedApplicationException(exceptionMessage); 115throw new DistributedApplicationException(exceptionMessage); 146throw new DistributedApplicationException(exceptionMessage); 706throw new DistributedApplicationException(exceptionMessage);
Aspire.Hosting.TestUtilities (2)
Publishing\FakeContainerRuntime.cs (2)
169throw new DistributedApplicationException("Fake container runtime is configured to fail"); 180throw new DistributedApplicationException("Fake container runtime is configured to fail");
Aspire.Hosting.Valkey (3)
ValkeyBuilderExtensions.cs (3)
138throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{valkey.Name}' resource but the connection string was null."); 216var port = resource.PrimaryEndpoint.TargetPort ?? throw new DistributedApplicationException("The Valkey REPL port is not available."); 229throw new DistributedApplicationException("The Valkey REPL password is not available.");