General exception from debugger in Visual Studio 2022, debugger process might be corrupted

63 Views Asked by At

I'm debugging an ASP.NET Web API project. After starting Visual Studio the first time, I try debugging and everything works fine, but after stopping the session and restarting, I get the following error after it hits the breakpoint and I try clicking anything

enter image description here

This fixes itself by restarting Visual Studio, but then it happens again every time. I want to debug without having to restart Visual Studio.

Do you have any ideas what would cause such an issue?

1

There are 1 best solutions below

1
On

Please share more details about your project.

For simply web app project, I am unable to reproduce your issue.

This issue should related to the configuration of your project code.

I there anything like this in your project

ResponseCompression in Web API

There is a known issue in this situation:

Hot Reload doen't work with UseResponseCompression Enabled

Compression under HTTPS with dotnet watch and launchBrowser: true breaks some HTML responses

You can revoke Response configuration or disable hot load.