Unable to connect to the Microsoft Visual Studio Remote Debugger due to blocked access in DxP

  • Updated
Description

When attempting to use remote debugging against an Integration DxP environment, the following error may occur. 

System.Runtime.InteropServices.COMException (0x89710023): Unable to connect to the Microsoft Visual Studio Remote Debugger named 'inte.example.com'.

 

Steps

First, ensure the following documentation has been followed. 

https://world.episerver.com/documentation/developer-guides/digital-experience-platform/troubleshooting/#EnableDebugging

 

The critical steps are the whitelisting of the development machine's(the one you are debugging from) public IP and making sure the debugging bypasses Cloudflare so it is not blocked.  

 

Whitelisting the local machine's IP

  1. First get the development machine's public IP by browsing to IP chicken
  2. In the Azure portal go to AppService -> networking -> access restrictions.
  3. Whitelist the public IP. 

Bypassing Cloudflare

  1. In the Azure portal, select Settings > Custom domains to obtain the IP address that is used by the URL.
  2. Add this IP address and the URL from the error message to the hosts file on the machine (located at C:\Windows\System32\drivers\etc\hosts). For example:

    111.111.111.111       inte.example.com