-
Notifications
You must be signed in to change notification settings - Fork 833
Description
REGRESSION INFO: This is a new feature.
INSTALL STEPS
- Clean machine: Windows x64 25h2
- Install SDK 10.0 201
- Install VS Code Insiders - 1.113.0
- Install Aspire.CLI 13.2.0
- iex "& { $(irm https://aspire.dev/install.ps1) } -Quality staging"
- aspire config set -g features:stagingChannelEnabled true
- Install Aspire extension - 1.0.5
REPRO STEPS
- Open VS Code, press “Ctrl + shift + P” > Search "Aspire" > Select "Aspire: New Aspire project" > Select “Starter App (Express/React)”
- Press F5 to run this project > Select debugger "Aspire"
- Stop app resource.
NOTE: Do not repro when creating and running a project using aspire new and aspire run in CMD.
Actual Result
The app “stop” failed: unhandled exception thrown.
Recording.3-20.at.12.55.webm
Executing command 'stop'.
Error executing command 'stop'.
System.InvalidOperationException: Failed to stop resource 'app-xtqjwnpd'.
at Aspire.Hosting.Dcp.DcpExecutor.StopResourceAsync(IResourceReference resourceReference, CancellationToken cancellationToken) in //src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 2525
at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.StopResourceAsync(String resourceName, CancellationToken cancellationToken) in //src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 593
at Aspire.Hosting.ApplicationModel.CommandsConfigurationExtensions.<>c.<b__1_3>d.MoveNext() in //src/Aspire.Hosting/ApplicationModel/CommandsConfigurationExtensions.cs:line 62
--- End of stack trace from previous location ---
at Aspire.Hosting.ApplicationModel.ResourceCommandService.ExecuteCommandCoreAsync(String resourceId, IResource resource, String commandName, CancellationToken cancellationToken) in //src/Aspire.Hosting/ApplicationModel/ResourceCommandService.cs:line 161
Expected Result
The app can be stopped successfully without any errors.
