Igor Meszaros
Igor Meszaros

Reputation: 2127

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

Upvotes: 3

Views: 3647

Answers (2)

Shawn
Shawn

Reputation: 21

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.

Upvotes: 1

Harshitha
Harshitha

Reputation: 7297

  • 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

Upvotes: 4

Related Questions