Repository navigation
Description
Type: Bug
Issue Description
After installing the latest version, vscode doesn't run (debug mode) an aspnet project.
With vscode trying to debug an aspnet mvc project (net 8) the process start but end without errors
Steps to Reproduce
Install latest version and try to run an aspnet mvc project in debug mode.
Expected Behavior
Start debugging and run the application
Actual Behavior
Stops unexpectedly but without errors
Extension version: 2.130.5
VS Code version: Code 1.120.0 (0958016b2af9f09bb4257e0df4a95e2f90590f9f, 2026-05-12T20:17:22Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Logs
C# log
Details
2026-05-15 07:10:05.260 [info] Locating .NET runtime version 10.0.5
2026-05-15 07:10:05.459 [info] Dotnet path: C:\Program Files\dotnet\dotnet.exe
2026-05-15 07:10:05.459 [info] Activating C# + C# Dev Kit...
2026-05-15 07:10:05.658 [info] info: Program[0]
2026-05-15 07:10:05.659 [info] Server started with process ID 17696
2026-05-15 07:10:06.317 [info] [Program] Language server initialized
2026-05-15 07:10:06.317 [info] [Program] Monitoring client process 28708 for exit
2026-05-15 07:10:08.420 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Users\ultra\source\repos\slnhtmmantenimientocore2\Datos\Datos.csproj loaded by C# Dev Kit
2026-05-15 07:10:09.353 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Users\ultra\source\repos\slnhtmmantenimientocore2\Microsoft.AspNetCore.Identity.MongoDB\Microsoft.AspNetCore.Identity.MongoDB.csproj loaded by C# Dev Kit
2026-05-15 07:10:09.373 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Users\ultra\source\repos\slnhtmmantenimientocore2\Logica\Logica.csproj loaded by C# Dev Kit
2026-05-15 07:10:10.541 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Users\ultra\source\repos\slnhtmmantenimientocore2\WebApplication\WebApplication.csproj loaded by C# Dev Kit
C# LSP Trace Logs log
Details
Environment Information
VSCode version: 1.120.0
C# Extension: 2.130.5
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 10.0.300 Commit: caa81fa497 Workload version: 10.0.300-manifests.e0989437 MSBuild version: 18.6.3+caa81fa49Runtime Environment:
OS Name: Windows
OS Version: 10.0.26200
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.300\
.NET workloads installed:
[maui-windows]
Installation Source: VS 18.6.11806.211
Manifest Version: 10.0.20/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maui\10.0.20\WorkloadManifest.json
Install Type: Msi
[android]
Installation Source: VS 18.6.11806.211
Manifest Version: 36.1.43/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.android\36.1.43\WorkloadManifest.json
Install Type: Msi
[maccatalyst]
Installation Source: VS 18.6.11806.211
Manifest Version: 26.2.10233/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maccatalyst\26.2.10233\WorkloadManifest.json
Install Type: Msi
[ios]
Installation Source: VS 18.6.11806.211
Manifest Version: 26.2.10233/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.ios\26.2.10233\WorkloadManifest.json
Install Type: Msi
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.
Host:
Version: 10.0.8
Architecture: x64
Commit: 94ea82652c
.NET SDKs installed:
10.0.108 [C:\Program Files\dotnet\sdk]
10.0.300 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
DOTNET_CLI_UI_LANGUAGE [en-US]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
| Extension | Author | Version | Folder Name |
|---|---|---|---|
| aspNetLocResManager | woodpecker | 0.3.1 | woodpecker.aspnetlocresmanager-0.3.1 |
| ayu | teabyii | 1.1.12 | teabyii.ayu-1.1.12 |
| continue | Continue | 1.2.22 | continue.continue-1.2.22-win32-x64 |
| cpp-devtools | ms-vscode | 0.5.13 | ms-vscode.cpp-devtools-0.5.13 |
| csdevkit | ms-dotnettools | 3.10.14 | ms-dotnettools.csdevkit-3.10.14-win32-x64 |
| csharp | ms-dotnettools | 2.130.5 | ms-dotnettools.csharp-2.130.5-win32-x64 |
| deepseek-v4-for-copilot | Vizards | 0.5.0 | vizards.deepseek-v4-for-copilot-0.5.0 |
| markdown-mermaid | bierner | 1.32.0 | bierner.markdown-mermaid-1.32.0 |
| material-icon-theme | PKief | 5.34.0 | pkief.material-icon-theme-5.34.0 |
| powershell | ms-vscode | 2025.4.0 | ms-vscode.powershell-2025.4.0 |
| rainbow-csv | mechatroner | 3.24.1 | mechatroner.rainbow-csv-3.24.1 |
| remote-containers | ms-vscode-remote | 0.459.0 | ms-vscode-remote.remote-containers-0.459.0 |
| theme-dracula | dracula-theme | 2.25.1 | dracula-theme.theme-dracula-2.25.1 |
| theme-dracula-at-night | bceskavich | 2.7.1 | bceskavich.theme-dracula-at-night-2.7.1 |
| vscode-dotnet-runtime | ms-dotnettools | 3.0.2 | ms-dotnettools.vscode-dotnet-runtime-3.0.2 |
| vscode-python-envs | ms-python | 1.30.0 | ms-python.vscode-python-envs-1.30.0-win32-x64 |
C# Settings
| Setting | Value |
|---|---|
| preferCSharpExtension | false |
| compilerDiagnosticScope | fullSolution |
| analyzerDiagnosticScope | openFiles |
| enableXamlTools | true |
| useServerGC | true |
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 9 7900X3D 12-Core Processor (24 x 4392) |
| GPU Status | 2d_canvas: enabled GPU0: VENDOR= 0x1002, DEVICE=0x73ff [AMD Radeon RX 6600], DRIVER_VENDOR=AMD, DRIVER_VERSION=32.0.21043.7012 ACTIVE GPU1: VENDOR= 0x1002, DEVICE=0x164e [AMD Radeon(TM) Graphics], DRIVER_VERSION=32.0.21043.7012 GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8328 Machine model name: Machine model version: direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off trees_in_viz: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 31.11GB (11.85GB free) |
| Process Argv | --crash-reporter-id ca7496c4-42e6-4f84-8014-82cadd3c25cb |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
pythonvspyt551:31249599
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
b6b4d950:31327385
6abeh943:31336334
envsdeactivate2:31505458
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ddidtcf:31399634
ec5jj548:31422691
cp_cls_c_966_ss:31454199
inlinechat_v2_hd992725:31505030
4je02754:31466945
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478677
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_control1:31471004
46204921:31447328
control_6dc23131:31513471
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
7e187181:31503455
i2gc6536:31499202
52612955:31515327
githubstableflight:31469463
ghj88844:31499326
h08i8180:31475369
ddid_t:31478206
1b2f8594:31509479
getcmakediagnosticsoff:31489825
ja75b849:31512419
7df3h592:31512476
pro_large_t:31499376
cp_cls_c_1082:31504161
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_c_632:31510883
852d2892:31506239
748c7209:31512887
cg448276_tst_on:31514358
32d76977:31512328
ha629193:31508444
539gd155_c:31506875
e6ac6c27:31509471
Activity
FrancescoBonizzi commentedon May 15, 2026
Same here
rubicd commentedon May 15, 2026
Same
Update:
gregg-miskelly commentedon May 15, 2026
Thanks for reporting this!
Can someone supply a "Protocol Messages" log: https://github.com/dotnet/vscode-csharp/blob/main/docs/debugger/Enabling-C%23-debugger-logging.md
DennisGlindhart commentedon May 15, 2026
Same here for some ASP.NET projects. The application starts, and it only crashes the debugger once a HTTP-requests hits the app.
The debugger works initially during the first request and I can step through the code, actions/custom middleware etc. for the request, so it seems to be around the "end"/response that something happens. Before the browser gets a response, that debugger has crashed/dettached.
Attached last part of a debug-session crashingwith
"protocolMessages": truegregg-miskelly commentedon May 15, 2026
Thanks!
That
eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.line is very strange. Feels like that could be related, but I don't have a good idea how that could happen.There should be a line at the start that begins with
-> (C) {"command":"launch";. Could you provide that as well in case it gives me some ideas?gregg-miskelly commentedon May 15, 2026
I can reproduce a problem that looks somewhat like this if I enable Razor runtime compilation.
Ex: Add:
Does this description match with what anyone is seeing/not seeing?
rubicd commentedon May 15, 2026
This fits with why the Blazor project works.
gregg-miskelly commentedon May 15, 2026
@rubicd are your broken projects something that you could easily test by disabling runtime compilation to see if that makes the issue go away?
rubicd commentedon May 15, 2026
@gregg-miskelly I am testing it now, and it's weird. I have 2 solutions of with nopCommerce with same configuration and same version and one works and the other does not. I'll try figure out what is different.
Edit:
AddRazorRuntimeCompilation() - This does not affect it
rubicd commentedon May 15, 2026
@gregg-miskelly
The problem is if i have ViewLocationExpander registered. If i comment it out, it works.
services.Configure(options =>
{
options.ViewLocationExpanders.Add(new ViewLocationExpander());
});
DennisGlindhart commentedon May 15, 2026
My "logging"-section in launch.json looks like this after trying to get some useful output for debug. Don't know if that can explain some of the "weirdness".
But launch-line comes here:
gregg-miskelly commentedon May 15, 2026
@DennisGlindhart Thanks!
Now that I found the in-memory problem, I can confirm this is what you are running into:
We will try to get a fix out as soon as we can. Unfortunately, the fix isn't in the debugger itself, but one of our dependencies, but hopefully we can still get a fix out soon.
11 remaining items
Fix debugger crash with in-memory symbols (#9335)
[prerelease]: Fix debugger crash with in-memory symbols (#9337)
[release]: Fix debugger crash with in-memory symbols (#9338)
UliPlabst commentedon Jun 1, 2026
I'm hitting this as well. I'm not using Razor but i am using csharp scripting to compile scripts during runtime. Downgrading
ms-dotnettools.csharpto2.130as @artyomszasa suggested works as workaround for me.brentksusco commentedon Jun 2, 2026
Just adding a +1 here. I assume it's the same issue. Rolling back to ms-dotnettools.csharp v2.130.5 resolved the debugger crash I was getting.
Symptom I was experiencing: Debugger would just silently die. I could get it to stop on a breakpoint in an MVC controller, but it would die on
return View();.andrerom commentedon Jun 4, 2026
@gregg-miskelly Is the fix that has gone into pre-lease good enough for a v2.140.9 patch release? Or is v2.142.x stable imminent?
Plasma commentedon Jun 11, 2026
Let me know if I can share any logs to help, I've noticed the debugger will crash/disconnect/detach and some underlying process is stuck in a loop or otherwise dead (http port still in use, not responding to requests its locked up).
I can easily reproduce this whenever I need to touch some razor cshtml files, editing them and saving and reloading the web page has a 80% chance of the process crashing (debugger detaches, website stops responding to any request).
I can't see any useful logs at all unfortunately, not sure if this is the same issue being discussed but began around the same time.
NikPiermafrost commentedon Jun 11, 2026
For me it starts and fails because my test projects are not wasm compatible, while i was trying to debug a blazor project
gregg-miskelly commentedon Jun 18, 2026
This was fixed in 2.140.9
github-actions commentedon Jun 18, 2026
@josedanielpena @FrancescoBonizzi @rubicd @gregg-miskelly @DennisGlindhart @artyomszasa @andrerom @droddy @jaguarxii @Skrypt @UliPlabst @brentksusco @Plasma @NikPiermafrost @travefy-ethan @draizada @rhys-dm @MarcVillain @arivera-cb @zeldages @tysonstewart
This issue has been fixed! Please update to the latest versions of VS Code, C# Dev Kit, and the C# extension.