Skip to content

[WebToolsE2E][Aspire] Refreshing the browser of the Aspire 9.2 dashboard, an error occurred in CMD: Unhandled exception in circuit. #7925

@vmykagapuz

Description

@vmykagapuz

REGRESSION INFO:

  1. Worked in Aspire 9.1.0

INSTALL STEPS

  1. Clean machine: Win11 x64 ENU
  2. Install SDK 9.0.200
  3. Add dotnet9 feed for 9.2.0-preview.1
  4. 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

  1. Open CMD, create an Aspire App using following commands:
dotnet new aspire-starter -o AspireApp
cd AspireApp/AspireApp.AppHost
  1. Dotnet run the project in CMD, and open URL in the browser.
    dotnet run

  2. Refresh the browser.

ACTUAL
An error occurred in CMD when refreshing the browser.
Image

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions