Skip to content

An error dialog The server process is no longer running pop ups when running the 11.0 Blazor WebAssembly Standalone App #66836

Closed

Description

@jinzhao1127

REGRESSION INFO Work well on 11.0 Preview 4 and previous 11.0 Preview 5

INSTALL STEPS

  1. Clean Win11 x64 25h2 ENU
  2. Install the latest VS 18.8 Insider 1
  3. Install 11.0 Preview 5
  4. Apply feed

Platform

  • Windows
  • macOS
  • Linux

Repro Steps

  1. File > New Project > Blazor WebAssembly Standalone App, click Next > select ".NET 11.0" > Set Authentication type to None >Create
  2. Debug project with F5/Ctrl + F5

Note

  1. This issue does not repro on Blazor Web Server/WebAssembly app.
  2. This issue does not repro on dotnet run.
  3. This issue does not repro on 10.0/9.0/8.0 project
  4. The project template changed by [Blazor] Replace DevServer with BlazorGateway for standalone WASM apps #65982, not sue if related with this change.

Actual Result
When running Blazor WebAssembly Standalone App, vs pop up an error dialog The server process is no longer running.
Image
Image

Console Log

A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\v-zhajin\source\repos\BlazorApp6\BlazorApp6\bin\Debug\net11.0\'.
Failed to run as a self-contained app.
  - The application was run as a self-contained app because 'C:\Users\v-zhajin\source\repos\BlazorApp6\BlazorApp6\bin\Debug\net11.0\BlazorApp6.runtimeconfig.json' did not specify a framework.
  - If this should be a framework-dependent app, specify the appropriate framework in 'C:\Users\v-zhajin\source\repos\BlazorApp6\BlazorApp6\bin\Debug\net11.0\BlazorApp6.runtimeconfig.json'

Activity

  1. github-actions commented on May 26, 2026

    @github-actions
    Contributor

    Triage Summary

    Area: area-blazor (Issue affects Blazor WebAssembly Standalone App template and project execution in Visual Studio)

    Type: Bug - The application fails to start when launched from Visual Studio due to missing hostpolicy.dll and incorrect runtimeconfig.json configuration.

    Regression Info

    • Previously working version: .NET 11.0 Preview 4 and earlier
    • Broken since: .NET 11.0 Preview 5
    • The error indicates the runtime is treating the app as self-contained when it should be framework-dependent. The runtimeconfig.json file is not specifying the framework reference, causing the runtime to look for hostpolicy.dll in the app directory instead of using the shared framework.

    Potential Duplicates

    None found. This appears to be a new regression specific to the Blazor WebAssembly Standalone App template changes in .NET 11.0 Preview 5.

    Notes

    • The issue only reproduces when running from Visual Studio (F5/Ctrl+F5), not with dotnet run
    • Only affects Blazor WebAssembly Standalone App template (not Blazor Web Server/WebAssembly hybrid apps)
    • The reporter suspects this may be related to PR [Blazor] Replace DevServer with BlazorGateway for standalone WASM apps #65982, which replaced DevServer with BlazorGateway for standalone WASM apps and was merged into 11.0-preview4 milestone
    • The error message suggests the runtimeconfig.json is missing the framework reference, causing the runtime to attempt self-contained deployment without the necessary files
    • This appears to be a Visual Studio project system or MSBuild target issue specific to how the Blazor WebAssembly Standalone template is configured

    Generated by Issue Triage Agent for dotnet/aspnetcore for issue #66836 · ● 493.1K · ◷

  2. added
    area-blazor
    on May 26, 2026
  3. jinzhao1127 commented on May 26, 2026

    @jinzhao1127
    Author

    @javiercn could you look at this issue?

  4. added theissue type on May 26, 2026
  5. javiercn commented on May 26, 2026

    @javiercn
    Member

    This is caused by VS not running the target (the CLI does it?) @baronfel do you know if this is the case or is the AI gaslighting me?

  6. baronfel commented on May 26, 2026

    @baronfel
    Member

    @javiercn what target are you thinking of here? I don't see any mention of a binlog or msbuild invocation in the user report or AI analysis, so I don't know how to begin helping.

  7. added 2 commits that reference this issue on May 26, 2026
    f851050
    886e9e9
  8. EmilyFeng97 commented on May 27, 2026

    @EmilyFeng97

    This issue also repro when running the Blazor WebAssembly Standalone App in VS Code.
    Image

  9. added 3 commits that reference this issue on May 27, 2026
    67538d1
    8d5ab32
    a91ae2f
  10. added this to the 11.0-preview6 milestone on May 28, 2026
  11. added a commit that references this issue on May 28, 2026
    cb8bd71
  12. added a commit that references this issue on Jun 1, 2026
  13. jinzhao1127 commented on Jun 2, 2026

    @jinzhao1127
    Author

    Verify this bug on the latest 11.0 P5 [11.0.100-preview.5.26279.113], it was fixed

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-blazor

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions