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

@jinzhao1127

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions