Visual Studio Remote Debug - MSVCP140.dll Missing

I am trying to debug a .NET application on a remote machine from my local developer. a machine. I am getting the error MSVCP140.dll.

More details:

Dev. machine: Visual Studio 2015, Windows 7

Remote Machine: Windows Server 2012 R2, Visual Studio Remote Install Tools for 2015.

On the remote machine, I configured the Remote Debugger with "no authentication" and port 4020.

In dev. Visual Studio Attach to Process window configured as follows:

Transport: Remote (no authentication)

Qualifier: remote_machine_name: 4020

When I click the Refresh button, it lists the processes on the remote machine. On the remote machine, the Visual Studio Remote Debugger window shows that the username is connected. Screenshot of the remote debugger window

As soon as I attach to the remote computer process in Visual Studio, it goes into debug mode, but the symbols remain unloaded.

Interestingly, an error message appeared on the remote computer: "The program does not start because the MSVCP140.dll file is missing on your computer. Try reinstalling the program to fix this problem."

Screenshot of error: MSVCP140.dll is missing

Although the MSVCP140.dll file exists in the path to the msvmon.exe.

+3


source to share


2 answers


I was able to get the Visual Studio 2015 remote debugger to work by adding the directory where msvcp140.dll is located on the remote host, with the "path" variable of the remote host's environment variable, and restarting the remote debugger on the remote host.



  • Find msvcp140.dll on the remote host. There were multiple instances for me and I selected "C: \ Program Files \ Microsoft Visual Studio 14.0 \ Remote Tools \ DiagnosticsHub".
  • Open the Environmental Variables dialog box. Control Panel → System and Security → System → Advanced System Settings → Environmental Variables ...
  • In the "System Variables" group, select "path" and click "Modify" ...
  • Add a semicolon to the end and insert the access point to msvcp140.dll (C: \ Program Files \ Microsoft Visual Studio 14.0 \ Remote Tools \ DiagnosticsHub) after the semicolon.
  • Click OK, click OK, OK.
  • If the Visual Studio Remote Debugger is running (check the system tray icons), exit it and then start Visual Studio Remote Debugger.
+5


source


Check the solution version of your platform (x86 or x64)



Install the C ++ Redistributable package appropriate for your platform and your VS version on the remote machine . Install both packages if unsure. You don't need to restart.

0


source







All Articles