Skip to content

Using AddBlazorWasmApp in AppHost results in 404 despite correct path #18007

@MdeBruin93

Description

@MdeBruin93

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I've followed the official docs on how to host a standalone Blazor Webassembly app using Aspire. This came up with the following snippet:

var wasm=builder.AddBlazorWasmApp("blazor", "../BlazorApp1/BlazorApp1.csproj");

var gateway = builder.AddBlazorGateway("gateway")
    .WithExternalHttpEndpoints();

gateway.WithBlazorClientApp(wasm);

This, however, results in a 404 when clicking on the URL in the Aspire dashboard.

Expected Behavior

Opening up the Blazor Webassembly application.

Steps To Reproduce

The app I used to test the integration.
https://github.com/MdeBruin93/BlazorWasmAspire

Exceptions (if any)

No response

Aspire doctor output

No response

Anything else?

I'm using Aspire 13.4.2 and .NET 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-integrationsIssues pertaining to Aspire Integrations packagesblazor-wasmtriage:bot-seenAspire triage bot has seen this issue

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions