Skip to content

[AspireE2E]There is a warning "The WebRootPath was not found: C:\Users\xxx\AspireJSApp\AspireJSApp.Server\wwwroot. Static files may be unavailable" for server resource on the dashboard when running Aspire JS app #13346

@jinzhao1127

Description

@jinzhao1127

REGRESSION INFO: New Feature on Aspire 13.1

INSTALL STEPS

  1. Clean machine: Windows x64 25h2
  2. Install SDK 10.0.100: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-10.0.100-windows-x64-installer
  3. Install Aspire 13.1 template:
     dotnet nuget add source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json --name dotnet9
     dotnet new install [email protected] --force
    
  4. Install nodejs and npm

REPRO STEPS

  1. Create aspire JS app with following command:
    dotnet new aspire-js-frontend-starter -o AspireJSApp
  2. Go to the project folder and run the app
     cd AspireJSApp\AspireJSApp.AppHost
     dotnet run
    
  3. Open the Dashboard URL in browser
  4. Open the console log of the server resource.

Note
This issue also reproduce on Aspire run

ACTUAL
There is a warning "The WebRootPath was not found: C:\Users\v-zhajin\AspireJSApp\AspireJSApp.Server\wwwroot. Static files may be unavailable"

Image

Error log:
app console log:

warn: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[16]
     The WebRootPath was not found: C:\Users\v-zhajin\AspireJSApp\AspireJSApp.Server\wwwroot. Static files may be unavailable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions