Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing MS debug DLLs for remote debugging

I have a .NET app that I would like to install on a VM for remote debugging purposes.

The app uses a native VC++ DLL which links to MFC and the MSVC runtime libraries via DLL.

When I run depends on the VM, it says that the DLL needs the following DLLs:

mfc90d.dll    
msvcm90d.dll    
msvcp90d.dll    
msvcr90d.dll    
msjava.dll

Also, it reports the following error:

Error: The Side-by-Side configuration information for [dll path] contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).

I'd prefer not to have to install the complete Visual Studio 2008 on the VM just to debug this.

What is the best method for installing the required DLLs onto the VM?

like image 401
Avalanchis Avatar asked Aug 18 '10 18:08

Avalanchis


2 Answers

The debug DLLs are provided in the vc\Debug_NonRedist subdirectory. Properly deploying them is explained in this MSDN Library article.

like image 180
Hans Passant Avatar answered Sep 27 '22 21:09

Hans Passant


There is/was a bug in vs2008 after the SP1 update where the manifest versions were not updated. To get around this I had to do this on the remote machine:

edit Microsoft.VC90.DebugCRT.manifest change version="9.0.30729.4148" to version="9.0.21022.8"

edit Microsoft.VC90.DebugMFC.manifest

change version="9.0.30729.4148" to version="9.0.21022.8"

[update] In looking for a reference for this I found

Important: If you do this with Visual Studio 2008 SP1, make sure you put the following in your precompiled header:

#define _BIND_TO_CURRENT_VCLIBS_VERSION 1

http://qualapps.blogspot.com/2008/07/visual-studio-2008-c-redistributable.html

like image 36
Armbie Avatar answered Sep 27 '22 19:09

Armbie