dotnet / dotnet/vscode-csharp

Hot reload VsDbg error when editing razor cshtml tags

Open
#8,719 1 comment 0 reactions 0 assignees View on GitHub
Debugger
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

## Environment data
`dotnet --info` output: .NET 10.0.100-rc2
VS Code version: 1.105.1
C# Extension version: 2.96.3
C#DK Extension version: 1.73.8

## C# logs
Hot Reload Logs:
2025-10-24 10:07:44.989 [info] Exception thrown for Apply code updates: 0x80131500 - Error processing 'vsCustomMessage' request. Unknown Error: 0x80131515
2025-10-24 10:07:44.990 [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)
2025-10-24 10:07:45.004 [info] An unexpected error has occurred, any pending updates have been discarded.
2025-10-24 10:07:45.018 [info] ❌ Hot Reload failed due to an unexpected error.

## Steps to reproduce

1. Turn on Hot Reload feature flag
2. Create a razor pages webapp
3. Start debugging
4. Open Index.cshtml
5. Modify the header or paragraph text
6. Save, or click hot reload

## Expected behavior
The page is refreshed with the changes.

## Actual behavior
The above error is show in the Hot Reload logs, and even after refresh, the page is not updated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.