question

JeffAKing-3712 avatar image
0 Votes"
JeffAKing-3712 asked ·

VS 2019 client, VS 2017 web server

My project resides on the web server, where only VS 2017 is installed. We just purchased a VS 2019 subscription, and installed only on my Workspace to test how each project responds to the new version. When I open and run the project in my Workspace session, using VS 2019, I get a remote debugging error (see attached). I discovered the path to the Remote Debugger (MSVSMON.EXE) is clearly different between the two versions of Visual Studio. I would expect that is the problem; when I run/build the project from my session using VS 2019, it's looking for the MSVSMON.EXE file, in the location that version VS 2019 says it exists. However, the VS 2017 location of this file is quite different. 70819-remotedebuggingerror.png

The plan is to update to VS 2019 on the server, where the project lives, but we need to make sure all of our projects will open and compile in the new version before installing it on the server.

vs-generalvs-debugging
10 |1000 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.

DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered ·

Hi JeffAKing,

According to this error, you can have following methods to troubleshoot it before updating to VS2019:

  • Reinstall remote debugger tool on web server

  • Make sure the correct ports in the firewall are open, especially if you are using a third party firewall.

  • If you are using a HOSTS file, make sure it is configured correctly. For example, if debugging using F5 (instead of Attach to Process), the HOSTS file needs to include the same project URL as in your project properties, Properties > Web > Servers or Properties > Debug, depending on your project type.

Best Regards,
Dylan


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· Share
10 |1000 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.

JeffAKing-3712 avatar image
0 Votes"
JeffAKing-3712 answered ·

DylanZhu,

Thank you for your response. Help me fully understand what you're suggesting... Are you saying I need to install the VS 2019 remote debugger tool on the web server, and then I will be able to debug from my session?

Would my problem be solved if we just installed VS 2019 on the remote server? Our ultimate goal is to upgrade to 2019.

I believe there is some concern that the upgrade installation on the remote server would create issues with the other existing projects located there.

Thank you,

Jeff.

· 5 · Share
10 |1000 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.

Hi @JeffAKing-3712 , can your workspace access the remote server which is set in Debug/Attach to process ?
71399-image.png

0 Votes 0 ·
image.png (11.0 KiB)
JeffAKing-3712 avatar image JeffAKing-3712 DylanZhu-MSFT ·

@DylanZhu-MSFT, I am NOT able to access the remote server from this dialogue in your screen shot. I did try to attach to a process from here, but whenever I put the address of the remote server in, along with either port 4022, or 4024, it did not find any services. So, that led me to believe it couldn't access it.

Although, I am able to RDP in to that server with no problems.

0 Votes 0 ·
DylanZhu-MSFT avatar image DylanZhu-MSFT JeffAKing-3712 ·

Hi @JeffAKing-3712 , I want to confirm some information about your project:

  • Does your project need to work with remote process? It means that if your project needs MSVSMON.EXE while running.

  • If the project need to run on the remote server, but the source code are managed on local environment, you need to install the remote debugger on remote server, and make your environment can access the server.

  • If your project need to be developed on web server you mentioned, you can check if your project can be built without any errors generally.

0 Votes 0 ·
Show more comments
JeffAKing-3712 avatar image
0 Votes"
JeffAKing-3712 answered ·

Additionally, if we were to install the VS 2019 remote debugging tool on the web server, would this negatively impact anyone debugging a project from VS 2017?

· Share
10 |1000 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.