Skip to content

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Aug 16, 2025

Customer Impact

At least 3 people have reported seeing this error when running the dashboard:

Unhandled exception. System.InvalidOperationException: Could not load the embedded file manifest 'Microsoft.Extensions.FileProvid │
│ ers.Embedded.Manifest.xml' for assembly 'Aspire.Dashboard'. │
│ at Microsoft.Extensions.FileProviders.Embedded.Manifest.ManifestParser.Parse(Assembly assembly, String name) │
│ at Microsoft.Extensions.FileProviders.ManifestEmbeddedFileProvider..ctor(Assembly assembly) │
│ at Aspire.Dashboard.DashboardEndpointsBuilder.MapDashboardBlazor(IEndpointRouteBuilder endpoints) in /source/aspire-9.4.0/src/ │
│ Aspire.Dashboard/DashboardEndpointsBuilder.cs:line 22 │
│ at Aspire.Dashboard.DashboardWebApplication..ctor(Action`1 preConfigureBuilder, WebApplicationOptions options) in /source/aspi │
│ re-9.4.0/src/Aspire.Dashboard/DashboardWebApplication.cs:line 447 │
│ at Program.

$(String[] args) in /source/aspire-9.4.0/src/Aspire.Dashboard/Program.cs:line 6

Unsure exactly what is causing the failure. Only some people are impacted. All reports are from MS folks?

We're fixing by switching to server the file from disk instead of using embedded file.

Testing

Manual. I launched the dashboard with the change to check the script file is available and the dashboard loads.

Risk

Low. Although it's critical that the dashboard loads this file, the delivery option (file on disk) is used for all other files. It's also easy to check whether it works or not.

Regression?

Yes. The dashboard worked consistently in 9.3, but in 9.4 there is this occasional error.

@JamesNK JamesNK added this to the 9.4.2 milestone Aug 16, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR transitions the Aspire Dashboard's blazor.web.js file from being served as an embedded resource to being served from the wwwroot directory as a static file. This change simplifies the file serving mechanism by removing custom endpoint mapping and embedded file provider infrastructure.

  • Removes custom endpoint mapping for blazor.web.js that used embedded file providers
  • Updates the script reference in App.razor to use the standard framework path
  • Removes embedded resource configuration and related package dependencies

Reviewed Changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Aspire.Dashboard/DashboardWebApplication.cs Removes call to MapDashboardBlazor() method
src/Aspire.Dashboard/DashboardEndpointsBuilder.cs Removes entire MapDashboardBlazor() method and related imports
src/Aspire.Dashboard/Components/App.razor Updates script src from custom path to standard framework path
src/Aspire.Dashboard/Aspire.Dashboard.csproj Removes embedded resource configuration and file provider package reference
eng/Versions.props Removes version property for embedded file provider package
Directory.Packages.props Removes package version entry for embedded file provider

@davidfowl davidfowl merged commit 8d690b4 into release/9.4 Aug 19, 2025
997 of 1003 checks passed
@davidfowl davidfowl deleted the jamesnk/blazorwebjs-file branch August 19, 2025 03:57
@dotnet-policy-service dotnet-policy-service bot modified the milestone: 9.4.2 Aug 19, 2025
This was referenced Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants