question

HuanNguyen-0546 avatar image
0 Votes"
HuanNguyen-0546 asked SnehaAgrawal-MSFT answered

Cannot debug Web App production slot, can debug second slot, error 0x89710023 msvsmon.exe does not appear to be running

Would anybody be able to shed light on why I cannot debug my Azure web app, using Visual Studio 2017 Community?

When I try, I get the following error:

88319-2021-04-13-12-28-12.png

I have done my homework on this error.

I have, so far:
- confirmed, in the Networking blade, that the Web App should be allowing the expected inbound connections.
- opened ports 4022/4023 on my local machine, and ensured I am outside of the enterprise firewall (when at work).
- completely disabled my local firewall and attempted to connect.
- confirmed that Remote Debugging is Enabled, with the correct platform (32-bit works in the second slot) and Visual Studio version (2017).
- confirmed, via the Process Explorer (and in Advanced Tools > Kudu > Process Explorer), that msvsmon.exe is indeed running.
- attempted to disable and then re-enable Remote Debugging, then attempting to attach the debugger.
- deployed the exact same application to the second slot, swapping slots, and attempting to attach to the production slot.

I saw other, more esoteric solutions such as ensuring the App Service does not have a dash ('-') in the name. The second slot has a dash (two, actually) and works fine.

Another solution I saw was to attempt to manually attach to the debug process using the "Attach to Process" tool in Visual Studio. When I use that, I can view processes on the second slot fine, but attempting to view processes in the production slot throws the same error message as reproduced above (with error code 0x89710023, saying that the remote debugger MSVSMON.exe does not appear to be running on the remote computer).

If anyone can help me understand, I (and my clients!) would be very grateful. Thank you.


azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered

Apologize for the late response and inconvenience with this issue! You may refer to Remote Debugging Errors and Troubleshooting

For in-depth instructions on remote debugging: check https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging?view=vs-2017


For specialized assistance on Visual studio suggest you to query on dedicated forum here: https://developercommunity.visualstudio.com/t/vs-2019-azure-remote-debugging-not-working/521946

Alternatively check this: https://toddbaginski.com/blog/how-to-debug-office-add-in-in-office-clients-without-visual-studio/

Let us know if further query or issue remains.

Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.