4
votes

I want to use Remote Debugger in Visual Studio 2015 to attach to my site. When I try "Attach Debugger" the azure return: The following error occurred while launching remote debugging: Unable to connect to the Microsoft Visual Studio Remote Debugger name 'XXXX'. Windows authentication was unable to establish a secure connection to the remote computer.

In azure portal I set remote debugging and select VS 2015.

4

4 Answers

12
votes

These errors might be related to Local Policies > Security Options > Network Security: LAN manager authentication level. It needs to be set to “Send NTLMV2 response only”. Once this is set then the PC was able to open RemoteApp applications without problems.

To set local policies go to command prompt and type secpol.msc or Administrative Tools > Local Security Policy

3
votes

Maybe your application is not enabled to use remote debugger.

To enable remote debugger in app service:

  1. Go to Azure management portal
  2. Select your app
  3. Go to settings
  4. Go to Debugging
  5. Enable Remote Debugging
  6. Select your visual studio debugger versión
0
votes

As much as it pains me to provide this as a solution, have you tried closing and re-opening Visual Studio? (In particular if you were able to connect at one point and it stopped working.) This has solved this issue for me on multiple occasions.

0
votes

Changing my network connection appeared to solve this for me. To do this, I:

  1. Open Networking and Sharing Center
  2. Change adapter settings
  3. Disable the currently-active network adapter (ethernet in my case)
  4. Enable another network adapter (WiFi in my case)

After that, Visual Studio debugged the app service.