Skip to content

Error after upgrade to 13.3.0 #16940

@FSchmidt-Altus

Description

@FSchmidt-Altus

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

After upgrading from 13.2.4 to 13.3.0 local dev using aspire run fails to start.

Expected Behavior

aspire run continue to work.

Steps To Reproduce

The app contains multiple Azure Container App.
Local debugging is done without any Azure resources. Also I have an AddAzureContainerAppEnvironment("appname-env") in the code.

Therefore I don't understand the message:

Step 'validate-azure-container-apps' failed: Resource 'backend' is configured to publish as an Azure Container App, but there are no 'AzureContainerAppEnvironmentResource' resources. Ensure you have added one by calling 'AddAzureContainerAppEnvironment'.

Exceptions (if any)

[2026-05-11 14:33:48.695] [DBUG] [DotNetCliRunner] Starting backchannel connection to AppHost at /home/UserName/.aspire/cli/runtime/sockets/cli.sock.3e762b3246f4
[2026-05-11 14:33:48.695] [DBUG] [AppHostCliBackchannel] Connecting to AppHost backchannel at /home/UserName/.aspire/cli/runtime/sockets/cli.sock.3e762b3246f4 (autoReconnect=False, retryCount=0)
[2026-05-11 14:33:48.703] [DBUG] [ProcessExecutionFactory] dotnet(384754) waiting for exit
[2026-05-11 14:33:48.813] [INFO] [AppHost] Using launch settings from /home/UserName/reposgh/src/AppName.AppHost/Properties/launchSettings.json...
[2026-05-11 14:33:49.195] [DBUG] [AppHostCliBackchannel] Connecting to AppHost backchannel at /home/UserName/.aspire/cli/runtime/sockets/cli.sock.3e762b3246f4 (autoReconnect=False, retryCount=10)
[2026-05-11 14:33:49.507] [INFO] [AppHost] dbug: Aspire.Hosting.DeveloperCertificateService[0]
[2026-05-11 14:33:49.507] [INFO] [AppHost]       Developer certificate HTTPS/TLS termination support: True
[2026-05-11 14:33:49.513] [INFO] [AppHost] dbug: Aspire.Hosting.FileSystemService[0]
[2026-05-11 14:33:49.513] [INFO] [AppHost]       Allocated temporary file: /tmp/aspireolr9s7/runtimeconfig.json
[2026-05-11 14:33:49.620] [INFO] [AppHost] fail: Aspire.Hosting.DistributedApplication[0]
[2026-05-11 14:33:49.620] [INFO] [AppHost]       Step 'validate-azure-container-apps' failed.
[2026-05-11 14:33:49.620] [INFO] [AppHost]       System.InvalidOperationException: Step 'validate-azure-container-apps' failed: Resource 'backend' is configured to publish as an Azure Container App, but there are no 'AzureContainerAppEnvironmentResource' resources. Ensure you have added one by calling 'AddAzureContainerAppEnvironment'.
[2026-05-11 14:33:49.620] [INFO] [AppHost]        ---> System.InvalidOperationException: Resource 'backend' is configured to publish as an Azure Container App, but there are no 'AzureContainerAppEnvironmentResource' resources. Ensure you have added one by calling 'AddAzureContainerAppEnvironment'.
[2026-05-11 14:33:49.620] [INFO] [AppHost]          at Aspire.Hosting.AzureContainerAppExtensions.<>c.<AddAzureContainerAppsInfrastructureCore>b__1_2(PipelineStepContext ctx) in /_/src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExtensions.cs:line 72
[2026-05-11 14:33:49.620] [INFO] [AppHost]          at Aspire.Hosting.Pipelines.DistributedApplicationPipeline.ExecuteStepAsync(PipelineStep step, PipelineStepContext stepContext) in /_/src/Aspire.Hosting/Pipelines/DistributedApplicationPipeline.cs:line 1137
[2026-05-11 14:33:49.620] [INFO] [AppHost]          --- End of inner exception stack trace ---
[2026-05-11 14:33:49.620] [INFO] [AppHost]          at Aspire.Hosting.Pipelines.DistributedApplicationPipeline.ExecuteStepAsync(PipelineStep step, PipelineStepContext stepContext) in /_/src/Aspire.Hosting/Pipelines/DistributedApplicationPipeline.cs:line 1149
[2026-05-11 14:33:49.620] [INFO] [AppHost]          at Aspire.Hosting.Pipelines.DistributedApplicationPipeline.ExecuteStepsSequentially(List`1 steps, PipelineContext context) in /_/src/Aspire.Hosting/Pipelines/DistributedApplicationPipeline.cs:line 1024
[2026-05-11 14:33:49.622] [FAIL] [AppHost] Unhandled exception. System.AggregateException: One or more errors occurred. (Step 'validate-azure-container-apps' failed: Resource 'backend' is configured to publish as an Azure Container App, but there are no 'AzureContainerAppEnvironmentResource' resources. Ensure you have added one by calling 'AddAzureContainerAppEnvironment'.)
[2026-05-11 14:33:49.622] [FAIL] [AppHost]  ---> System.InvalidOperationException: Step 'validate-azure-container-apps' failed: Resource 'backend' is configured to publish as an Azure Container App, but there are no 'AzureContainerAppEnvironmentResource' resources. Ensure you have added one by calling 'AddAzureContainerAppEnvironment'.
[2026-05-11 14:33:49.622] [FAIL] [AppHost]  ---> System.InvalidOperationException: Resource 'backend' is configured to publish as an Azure Container App, but there are no 'AzureContainerAppEnvironmentResource' resources. Ensure you have added one by calling 'AddAzureContainerAppEnvironment'.
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Aspire.Hosting.AzureContainerAppExtensions.<>c.<AddAzureContainerAppsInfrastructureCore>b__1_2(PipelineStepContext ctx) in /_/src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExtensions.cs:line 72
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Aspire.Hosting.Pipelines.DistributedApplicationPipeline.ExecuteStepAsync(PipelineStep step, PipelineStepContext stepContext) in /_/src/Aspire.Hosting/Pipelines/DistributedApplicationPipeline.cs:line 1137
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    --- End of inner exception stack trace ---
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Aspire.Hosting.Pipelines.DistributedApplicationPipeline.ExecuteStepAsync(PipelineStep step, PipelineStepContext stepContext) in /_/src/Aspire.Hosting/Pipelines/DistributedApplicationPipeline.cs:line 1149
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Aspire.Hosting.Pipelines.DistributedApplicationPipeline.ExecuteStepsSequentially(List`1 steps, PipelineContext context) in /_/src/Aspire.Hosting/Pipelines/DistributedApplicationPipeline.cs:line 1024
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Aspire.Hosting.Pipelines.DistributedApplicationPipeline.ExecuteStepsSequentially(List`1 steps, PipelineContext context) in /_/src/Aspire.Hosting/Pipelines/DistributedApplicationPipeline.cs:line 1032
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Aspire.Hosting.Pipelines.DistributedApplicationPipeline.ExecuteStepsSequentially(List`1 steps, PipelineContext context) in /_/src/Aspire.Hosting/Pipelines/DistributedApplicationPipeline.cs:line 1038
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Aspire.Hosting.Pipelines.DistributedApplicationPipeline.ExecuteStepSequentiallyAsync(String stepName, PipelineContext context) in /_/src/Aspire.Hosting/Pipelines/DistributedApplicationPipeline.cs:line 617
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Aspire.Hosting.DistributedApplication.ExecuteBeforeStartHooksAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/DistributedApplication.cs:line 610
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Aspire.Hosting.DistributedApplication.RunAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/DistributedApplication.cs:line 505
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    --- End of inner exception stack trace ---
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at System.Threading.Tasks.Task.Wait()
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Aspire.Hosting.DistributedApplication.Run() in /_/src/Aspire.Hosting/DistributedApplication.cs:line 544
[2026-05-11 14:33:49.622] [FAIL] [AppHost]    at Program.<Main>$(String[] args) in /home/UserName/reposgh/src/AppName.AppHost/Program.cs:line 442
[2026-05-11 14:33:49.696] [DBUG] [AppHostCliBackchannel] Connecting to AppHost backchannel at /home/UserName/.aspire/cli/runtime/sockets/cli.sock.3e762b3246f4 (autoReconnect=False, retryCount=20)
[2026-05-11 14:33:50.088] [DBUG] [ProcessExecutionFactory] dotnet(384754) exited with code: 134
[2026-05-11 14:33:50.088] [DBUG] [ProcessExecutionFactory] dotnet(384754) forwarders completed
[2026-05-11 14:33:50.096] [DBUG] [DotNetCliRunner] AppHost process has exited. Unable to connect to backchannel at /home/UserName/.aspire/cli/runtime/sockets/cli.sock.3e762b3246f4
System.Net.Sockets.SocketException (99): Cannot assign requested address
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.CreateException(SocketError, Boolean) + 0x7b
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ConnectAsync(Socket, CancellationToken) + 0xcf
   at Aspire.Cli.Backchannel.AppHostCliBackchannel.<ConnectAsync>d__19.MoveNext() + 0x2cc
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x5a
   at Aspire.Cli.Backchannel.AppHostCliBackchannel.ConnectAsync(String, Boolean, Int32, CancellationToken) + 0x51
   at Aspire.Cli.DotNet.DotNetCliRunner.<StartBackchannelAsync>d__19.MoveNext() + 0x54a
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object) + 0xa7
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread) + 0x63
   at System.Threading.TimerQueueTimer.Fire(Boolean) + 0x4e
   at System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x2ff
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() + 0x187
   at System.Threading.Thread.StartThread(IntPtr) + 0x131
   at System.Threading.Thread.ThreadEntryPoint(IntPtr) + 0x19
--- End of stack trace from previous location ---
   at Aspire.Cli.Backchannel.AppHostCliBackchannel.<ConnectAsync>d__19.MoveNext() + 0xea
--- End of stack trace from previous location ---
   at Aspire.Cli.DotNet.DotNetCliRunner.<StartBackchannelAsync>d__19.MoveNext() + 0x284
[2026-05-11 14:33:50.096] [FAIL] [AspireCliTelemetry] An error occurred while connecting to the AppHost. The AppHost possibly crashed before it was available: AppHost process has exited unexpectedly..
Aspire.Cli.Backchannel.FailedToConnectBackchannelConnection: AppHost process has exited unexpectedly.
 ---> System.Net.Sockets.SocketException (99): Cannot assign requested address
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.CreateException(SocketError, Boolean) + 0x7b
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ConnectAsync(Socket, CancellationToken) + 0xcf
   at Aspire.Cli.Backchannel.AppHostCliBackchannel.<ConnectAsync>d__19.MoveNext() + 0x2cc
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x5a
   at Aspire.Cli.Backchannel.AppHostCliBackchannel.ConnectAsync(String, Boolean, Int32, CancellationToken) + 0x51
   at Aspire.Cli.DotNet.DotNetCliRunner.<StartBackchannelAsync>d__19.MoveNext() + 0x54a
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object) + 0xa7
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread) + 0x63
   at System.Threading.TimerQueueTimer.Fire(Boolean) + 0x4e
   at System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x2ff
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() + 0x187
   at System.Threading.Thread.StartThread(IntPtr) + 0x131
   at System.Threading.Thread.ThreadEntryPoint(IntPtr) + 0x19
--- End of stack trace from previous location ---
   at Aspire.Cli.Backchannel.AppHostCliBackchannel.<ConnectAsync>d__19.MoveNext() + 0xea
--- End of stack trace from previous location ---
   at Aspire.Cli.DotNet.DotNetCliRunner.<StartBackchannelAsync>d__19.MoveNext() + 0x284
   --- End of inner exception stack trace ---
   at Aspire.Cli.Commands.RunCommand.<>c__DisplayClass21_0.<<ExecuteAsync>b__0>d.MoveNext() + 0x54
--- End of stack trace from previous location ---
   at Aspire.Cli.Interaction.ConsoleInteractionService.<ShowStatusAsync>d__23`1.MoveNext() + 0x75
--- End of stack trace from previous location ---
   at Aspire.Cli.Commands.RunCommand.<ExecuteAsync>d__21.MoveNext() + 0x5fb
[2026-05-11 14:33:50.096] [INFO] [Stdout] ❌ An error occurred while connecting to the AppHost. The AppHost possibly crashed before it was available: AppHost process has exited unexpectedly..

Aspire doctor output

$ aspire doctor

Aspire Environment Check
========================

.NET SDK
  ✅ .NET 10.0.104 installed (x64)  

Container Runtime
  ✅ Podman v5.8.2: running (auto-detected (only runtime running)) ← active  

Environment
  ⚠️ Multiple HTTPS development certificates found (2 certificates)  
       Run 'aspire certs clean' to remove all certificates, then run 'aspire certs trust' to create and trust a new one.                                         
       See: https://aka.ms/aspire-prerequisites#dev-certs                                                                                                        
       Details:                                                                                                                                                  
       Found certificates: v6 (665029D2...) [partial], v6 (05C79CE2...). Having multiple certificates can cause confusion when selecting which one to use.       

Summary: 2 passed, 1 warnings, 0 failed

Anything else?

No response

[Update]
Fixed Environment Warning Multiple HTTPS development certificates without changes.

Metadata

Metadata

Assignees

Labels

azureIssues associated specifically with scenarios tied to using Azure‼️regression-from-last-releaseThis used to work in an earlier version of Aspire and we broke it!

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions