How to resolve Msvcr100.dll Errors

Msvcr100.dll (or Microsoft Visual C++ Redistributable) is required for applications that are written in C++ using the Microsoft Visual 2010 programming language. Another file msvcr100d.dll is also used for this purpose, the only difference is that “D” in the second file indicates that it is a debugging file.

Error Message

Users have reported the following two errors when they compiled a C++ application in Visual Studio 2010 and then tried to run it on a Visual Studio 2008 server. The program failed to run and displayed the following error:

“ProgramName – System Error

The program can’t start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem.”

“Autorun – System Error

The program can’t start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem.”

Resolution Step

Method 1: Link the DLL files statically. This will ensure that they compile into the executable and are not referenced as separate DLL files.

Listed below are the steps to achieve this:

Steps for the Release file msvcr100.dll

  1. Open Visual Studio and go to Properties of the project.
  2. Here, change the Configuration to Release.
  3. Next, navigate to Configuration Properties > C/C++ > Code Generation.
  4. Check the configuration of Runtime Library. In case, it is Multi-threaded DLL (/MD), change it to Multi-threaded (/MT)
  5. Finally, rebuild the release.

Steps for the Debug file msvcr100s.dll

  1. Open Visual Studio and go to Properties of the project.
  2. Here, change the Configuration to Debug.
  3. Next, navigate to Configuration Properties > C/C++ > Code Generation.
  4. Check the configuration of Runtime Library. In case, it Multi-threaded Debug DLL (/MDd), change it to Multi-threaded Debug (/MTd)
  5. Rebuild debug.

Method 2: Install Microsoft Visual C++ 2010 Redistributable Package

This redistributable package is designed to install Visual C++ runtime components that are required to run applications written using Visual C++ on a system that does not have Visual C++.

Here are the links for the x86 and x64 operating systems, respectively:

x86: http://www.microsoft.com/download/en/details.aspx?id=5 555

x64-bit: http://www.microsoft.com/download/en/details.aspx?id=1 4632

Download and install this redistributable on a computer that does not have Visual C++ 2010 installed on it. This will prevent msvcr100.dll errors that are generated when you try to compile an application compile in Visual Studio 2010 in an older version of Visual Studio.