Remote debugging of Azure web app that was working for many months is now not working.

David Richards 1 Reputation point
2022-09-09T18:22:09.647+00:00

Remote debugging of Azure web app that was working for many months is now not working.

Getting "Unable to connect to ... The connection with the remote endpoint was terminated." error message when using Debug>Attach to process.
Getting the following error message when using the Cloud Explorer > Attach Debugger

System.Runtime.InteropServices.COMException (0x89710023): Unable to connect to the Microsoft Visual Studio Remote Debugger named 'xxxxxxxxx'. The connection with the remote endpoint was terminated.

at Microsoft.WebTools.Azure.VS.Operations.IDebuggerInternal120.ConnectToServer(String szServerName, VsDebugRemoteConnectOptions[] pConnectOptions, CONNECT_REASON ConnectReason, Int32 fIncrementUsageCount, IDebugCoreServer3& ppServer)
at Microsoft.WebTools.Azure.VS.Operations.RemoteDiagnosticsSessionBase`1.ConnectToServer(String site, String user, String password)

Verified that firewall TCP/IP port 4024 and UDP port 3702 are open in my firewall.

Verified the Configuaration>General Settings>Remote debugging is on for VS 2019. Turned off and on and restarted the web app to no avail.

Using Kudo > Process Explorer >Properties of w3wp.exe > Modules does not show that MSVSMON.EXE is not running

Any suggestions?

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,006 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.