Skip to content

[WebToolsE2E][Green] VsDbgException raiseed when applying change to .NET 11 wasm standalone project #3451

Description

C# ext: 2.151.24
C#DK: 3.31.216

Step to reproduce

  • dotnet new blazorwasm -f net11.0 to create a blazor standalone wasm for .NET 11
  • open the project in vscode
  • debug launch the project and making a change and apply hotreload
  • go to hotreload output window and check their output
2026-09-02 10:46:09.576 [info]  Found 2 potentially changed, 0 deleted document(s) in project 'C:\src\BlazorWasm11\BlazorWasm11.csproj'
2026-09-02 10:46:09.581 [info]  Capabilities required by 'C:\src\BlazorWasm11\obj\Debug\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages/Counter_razor.decl.g.cs': Baseline
2026-09-02 10:46:09.596 [info]  Capabilities required by 'C:\src\BlazorWasm11\obj\Debug\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages/Counter_razor.g.cs': Baseline
2026-09-02 10:46:09.603 [info]  Document changed, added, or deleted: 'C:\src\BlazorWasm11\obj\Debug\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages/Counter_razor.decl.g.cs'
2026-09-02 10:46:09.608 [info]  Document changed, added, or deleted: 'C:\src\BlazorWasm11\obj\Debug\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages/Counter_razor.g.cs'
2026-09-02 10:46:09.613 [info]  Project summary for 'C:\src\BlazorWasm11\BlazorWasm11.csproj': ValidChanges
2026-09-02 10:46:09.654 [info]  Emitting update of 'C:\src\BlazorWasm11\BlazorWasm11.csproj'
2026-09-02 10:46:09.679 [info]  Applying code updates...
2026-09-02 10:46:09.681 [info]  Solution update 2.1 status: Ready
2026-09-02 10:46:09.686 [info]  Module update: capabilities=[Baseline], types=[02000007], methods=[0600000F]
2026-09-02 10:46:09.813 [info]  Exception thrown for Apply code updates: 0x80131500 - Error processing 'vsCustomMessage' request. 
2026-09-02 10:46:09.814 [info]  Stack trace for VsDbg.VsDbgException:
   at VsDbg.BrokeredServices.Services.HotReloadVsdbgEngineService.SendMessageAsync[T](ManagedEditAndContinueMessage message, CancellationToken cancellationToken)
   at VsDbg.BrokeredServices.Services.HotReloadVsdbgEngineService.ApplyCodeUpdatesAsync(ImmutableArray`1 updates, CancellationToken cancellationToken)
2026-09-02 10:46:09.817 [info]  An unexpected error has occurred, any pending updates have been discarded.
2026-09-02 10:46:09.818 [info]  ❌ Hot Reload failed due to an unexpected error.
2026-09-02 10:46:09.822 [info]  Exception found while applying code changes: Error: Error processing 'vsCustomMessage' request. 
2026-09-02 10:46:10.782 [info]  Document unchanged: 'C:\src\BlazorWasm11\Program.cs'
2026-09-02 10:46:10.788 [info]  Capabilities required by 'C:\src\BlazorWasm11\obj\Debug\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages/Counter_razor.g.cs': Baseline

Things to note

  • This issue DOESNT appear on .NET 10 wasm standalone project

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-hotreloadIssues with Hot Reload experiencesprerelease-blockingIssue that is blocking next pre-release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions