windows server 2019 remote debugging issue with Asp.Net MVC 5.

mehmood tekfirst 766 Reputation points
2022-08-05T08:13:02.91+00:00

Hi,

I need to remote debug the my Asp.Net MVC 5 application which is deployed on the Windows Server 2019.

My server is a bit more secured and can't directly access through IP or Computer Name on the Internet.

If I want to do RDP then there is a gateway address is something like this

Gateway server : testuni-system.com
Remote Computer : TRC-FFE-FERTH-Y

I have installed Remote bugging tools for Visual studio 2022 on the Windows Server 2019.

What I need to do is to debug my application bug remotely?

In my local , everything is fine. I got the db from the server and then tried. Still everything is working fine in my local machine.

Now there is the only way to check it which is remote debugging.

Please guide me.

thank you.

I have tried to attach to process but my processed don't show w3wp.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,451 questions
Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,249 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 55,366 Reputation points
    2022-08-05T16:30:23.267+00:00

    Remote debugging does not support proxy configurations. You should RDP to server that

    1) has direct access to the server to be debugged (debugging ports need to be open)
    2) has the client debugging tools installed. (You may also want the source files)

    1 person found this answer helpful.
    0 comments No comments

  2. Yurong Dai-MSFT 2,776 Reputation points Microsoft Vendor
    2022-08-08T08:57:53.937+00:00

    Hi @mehmood tekfirst ,

    If you don't see any processes, try using the IP address instead of the remote computer name (the port is required). You can use ipconfig in a command line to get the IPv4 address.

    Check Show processes from all users. If you have multiple processes showing w3wp.exe, check the User Name column. In some scenarios, the User Name column shows your app pool name, such as IIS APPPOOL\DefaultAppPool. If you see the App Pool, an easy way to identify the correct process is to create a new named App Pool for the app instance you want to debug, and then you can find it easily in the User Name column.

    For how to remote debug ASP.NET on a remote IIS computer, you can refer to this official documentation. You can see the specific steps to attach to the ASP.NET application from a Visual Studio computer.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the email notification for this thread.

    Best regards,
    Yurong Dai

    1 person found this answer helpful.
    0 comments No comments

  3. Limitless Technology 39,341 Reputation points
    2022-08-08T10:06:41.467+00:00

    Hi there,

    While it's possible to debug without running the remote debugger as an administrator, there are several requirements to make this work correctly and they often require more advanced service configuration steps.

    Remote Debugging Errors and Troubleshooting https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging-errors-and-troubleshooting?view=vs-2022

    --------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    1 person found this answer helpful.
    0 comments No comments