[AspireE2E] After installing 10.0 P7, running an existing 9.0/10.0 P6 Aspire project, an exception occurs in the CLI and the dashboard cannot be loaded correctly.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
**REGRESSION INFO**: This issue is also reproduced in the following configuration:
- SDK 9.0.303 + Asprie 9.3.1 + SDK 10.0 P6
- SDK 9.0.303 + Asprie 9.4.0 + SDK 10.0 P6
- SDK 10.0 P6 + Asprie 9.4.0 + SDK 10.0 P7
**REPRO STEPS**
1. Clean machine: Win11 x64 24h2 ENU
2. Install SDK 9.0.303 and Aspire 9.4.0
3. Execute `dotnet dev-certs https --trust` to trust the dev cert of SDK 9.0.303
4. Create an Aspire Starter App and run the project. It runs successfully.
5. Install SDK 10.0 P7, and do not execute `dotnet dev-certs https --trust`
6. Open the project created in step 4 and run it using `dotnet run`, and open URL in the browser.
**NOTE**:
1. This issue only occurs on the first run.
2. If you open a project that was run before the 9.0.303 dev cert was established, or a project that has not been run since the dev cert was established, the issue will not be reproduced.
3. After adding the 10.0 P7 dev cert, open the existing 9.0 project to run it, and this issue will not repro.
**ACTUAL**
The page is blank.
After refreshing, I encountered this error.
fail: Aspire.Hosting.Dashboard.Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'Rhys8rR4C__-yQ1Cg3X_myEcKJ6F5XR38_oj6SsuJjc'.
Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: https://localhost:17111/_content/Microsoft.FluentUI.AspNetCore.Components/Components/Anchor/FluentAnchor.razor.js?v=4.11.9.25128
TypeError: Failed to fetch dynamically imported module: https://localhost:17111/_content/Microsoft.FluentUI.AspNetCore.Components/Components/Anchor/FluentAnchor.razor.js?v=4.11.9.25128
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at Microsoft.FluentUI.AspNetCore.Components.FluentAnchor.OnAfterRenderAsync(Boolean firstRender) in /_/src/Core/Components/Anchor/FluentAnchor.razor.cs:line 133
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Stop running, then run again, the page can be displayed normally.
**EXPECTED**
The project can be run successfully without any errors.
Contributor guide
Assessment
This issue has not been assessed yet.