Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to connect to the Microsoft Visual Studio Remote Debugger. Operation not supported. Unknown error: 0x80004005

I have deployed the following API as is to an Azure App Service from Visual Studio. I have made sure that I have Remote Debugging and Visual Studio version 2022 selected in General settings in the App Service Configuration.

enter image description here

When I try and attach process from Visual Studio to my App Service I get thefollowing error:

enter image description here

like image 201
Igor Meszaros Avatar asked Dec 06 '25 17:12

Igor Meszaros


2 Answers

  • In VS 2022, We have an easy and direct way to attach debugger.
  • After publishing your WebApp, In Hosting settings we will find an option to Attach Debugger.

enter image description here

Once debugger is attached, Remote debugging is enabled in Portal => Configuration Settings automatically.

enter image description here

  • Place a break point in any of the form which you want to debug.
  • Visual Studio finds the process, all the symbols will be loaded, and debugger is attached.

enter image description here

like image 79
Harshitha Veeramalla Avatar answered Dec 08 '25 08:12

Harshitha Veeramalla


For anyone else experiencing this issue and the above suggestions do not work for you. We were experiencing the same issue.

"Unable to connect to the Microsoft Visual Studio Remote Debugger. Operation not supported. Unknown error"

VS 2022 Azure App Service, (Basic) Azure App Service: debug Enabled, VS 2022 selected and 64 bit

The solution for us was to..

  1. upgrade to "Standard" App Service Plan
  2. create a Deployment Slot
  3. Build & Deploy to new Slot
  4. Attach to Process & Debug

Steps 1 & 2 was the magic solution for our scenario.

like image 35
Shawn Avatar answered Dec 08 '25 09:12

Shawn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!