Skip to content

[AspireE2E] When creating and running the Aspire Starter App (Express/React) in VS Code, the app resources fail to stop on the dashboard page. #15426

@v-reinawang

Description

@v-reinawang

REGRESSION INFO: This is a new feature.

INSTALL STEPS

  1. Clean machine: Windows x64 25h2
  2. Install SDK 10.0 201
  3. Install VS Code Insiders - 1.113.0
  4. Install Aspire.CLI 13.2.0
  5. Install Aspire extension - 1.0.5

REPRO STEPS

  1. Open VS Code, press “Ctrl + shift + P” > Search "Aspire" > Select "Aspire: New Aspire project" > Select “Starter App (Express/React)”
  2. Press F5 to run this project > Select debugger "Aspire"
  3. 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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions