-
Notifications
You must be signed in to change notification settings - Fork 802
Open
Labels
needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area ownersAn area label is needed to ensure this gets routed to the appropriate area owners
Description
INSTALL STEPS
- Clean machine: Win11 x64 23h2 ENU
- Install SDK 10.0.102
- Install Aspire.Cli 13.1.0
iex "& { $(irm https://aspire.dev/install.ps1) }" - Enable the hot reload feature in aspire CLI with
aspire config set features.defaultWatchEnabled true
REPRO STEPS
- Open CMD and create an Aspire Starter App (ASP.NET Core/Blazor)
dotnet new aspire-starter -o aspire01 cd aspire01/aspire01.AppHost - Run
aspire run - Open the URL on browser.
- Open AppHost.cs file under xxx.AppHost, and add code
.WithReplicas(2);then save the file.

ACTUAL
The process is shut down and An unexpected error occurred: The JSON-RPC connection with the remote party was lost before the request could complete.

Note:
- This issue does not reproduce on Web project and ApiService project
ERROR LOG
β An unexpected error occurred: The JSON-RPC connection with the remote party was lost before the request
could complete.
dotnet watch π₯ Hot reload enabled. For a list of supported edits, see https://aka.ms/dotnet/hot-reload.
dotnet watch π‘ Press Ctrl+R to restart.
dotnet watch π¨ Building C:\Users\v-zhajin\Aspire2\Aspire2.Apphost\Aspire2.AppHost.csproj ...
dotnet watch π¨ Build succeeded: C:\Users\v-zhajin\Aspire2\Aspire2.Apphost\Aspire2.AppHost.csproj
Using launch settings from C:\Users\v-zhajin\Aspire2\Aspire2.Apphost\Properties\launchSettings.json...
info: Aspire.Hosting.DistributedApplication[[0]]
Aspire version: 13.2.0-preview.1.26064.8+12d27ad489e97bcfa37c074f3fa310643c8dc7f7
info: Aspire.Hosting.DistributedApplication[[0]]
Distributed application starting.
info: Aspire.Hosting.DistributedApplication[[0]]
Application host directory is: C:\Users\v-zhajin\Aspire2\Aspire2.Apphost
info: Aspire.Hosting.DistributedApplication[[0]]
Now listening on: https://localhost:17017
info: Aspire.Hosting.DistributedApplication[[0]]
Login to the dashboard at https://localhost:17017/login?t=2aac32108ba777016e1172b8cca5c35e
info: Aspire.Hosting.DistributedApplication[[0]]
Distributed application started. Press Ctrl+C to shut down.
dotnet watch β File updated: .\AppHost.cs
dotnet watch π₯ Restart is needed to apply the changes.
dotnet watch β [[Aspire2.ApiService (net10.0)]] Exited
dotnet watch β [[Aspire2.Web (net10.0)]] ExitedEXPECTED
The hot reload should be successfully or restart the app automatically.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area ownersAn area label is needed to ensure this gets routed to the appropriate area owners