-
Notifications
You must be signed in to change notification settings - Fork 770
Closed
Labels
Milestone
Description
REGRESSION INFO:
- Worked in Aspire 9.1.0
INSTALL STEPS
- Clean machine: Win11 x64 ENU
- Install SDK 9.0.200
- Add dotnet9 feed for 9.2.0-preview.1
- Install the latest Aspire 9.2.0-preview.1 templates
- dotnet new install Aspire.ProjectTemplates::9.2.0-preview.1.25155.9 --force
REPRO STEPS
- Open CMD, create an Aspire App using following commands:
dotnet new aspire-starter -o AspireApp
cd AspireApp/AspireApp.AppHost
-
Dotnet run the project in CMD, and open URL in the browser.
dotnet run -
Refresh the browser.
ACTUAL
An error occurred in CMD when refreshing the browser.

Aspire.Hosting.Dashboard.Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'nf5GHs8rv5pJfew4VjTFpl6Bq3-edOfx4sp4FWhymNI'.
Microsoft.JSInterop.JSDisconnectedException: JavaScript interop calls cannot be issued at this time. This is because the circuit has disconnected and is being disposed.
at Microsoft.AspNetCore.Components.Server.Circuits.RemoteJSRuntime.BeginInvokeJS(Int64 asyncHandle, String identifier, String argsJson, JSCallResultType resultType, Int64 targetInstanceId)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, CancellationToken cancellationToken, Object[] args)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, String identifier, Object[] args)
at Microsoft.FluentUI.AspNetCore.Components.FluentToolbar.DisposeAsync() in /_/src/Core/Components/Toolbar/FluentToolbar.razor.cs:line 62
at Microsoft.AspNetCore.Components.RenderTree.Renderer.<>c__DisplayClass85_0.<<Dispose>g__HandleAsyncExceptions|1>d.MoveNext()
EXPECTED
There should be no errors when refreshing the browser.