sodcalculator

10 Tech How-To

Fix Runtime Error R6034 in Windows 11

Guide 10-37638 · Updated · Step by step

Runtime error R6034 in Windows 11 occurs when an application tries to load the C runtime library (MSVCR) without a proper application manifest, and the fix is to install the Microsoft Visual C++ Redistributable packages or repair the specific app. This error typically appears as a dialog box saying “An application has made an attempt to load the C runtime library incorrectly,” and it can affect both old and new programs. Below are the exact steps to resolve it, along with background on why it happens and how to prevent it.

What Causes Runtime Error R6034

The error is tied to the Microsoft C Runtime Library, specifically the file msvcr*.dll (like msvcr100.dll or msvcr120.dll). When a program is compiled, it may depend on a specific version of this library. Windows loads the library through a mechanism called side-by-side assembly, which requires an application manifest—a small XML file embedded in the executable that declares which runtime version to use. If the manifest is missing, malformed, or the required runtime version isn’t installed, Windows falls back to searching the system folders, finds a mismatched DLL, and throws R6034.

Common triggers include:

  • Running older games or business software that wasn’t updated for newer Windows versions.
  • Installing a program from a portable or repackaged installer that skipped the redistributable step.
  • Having multiple versions of Visual C++ Redistributables installed, causing conflicts.
  • Using a 32-bit program on a 64-bit Windows 11 system, where both SysWOW64 and System32 folders contain different runtime versions.

Step-by-Step Fix: Install the Correct Redistributable

The most reliable fix is to ensure the required Visual C++ Redistributable is installed. Microsoft distributes these as free packages, and they are safe to download from the official Microsoft website.

  1. Identify which runtime version the program needs. Look at the error message—it may mention a specific DLL like msvcr120.dll (Visual C++ 2013) or msvcr140.dll (Visual C++ 2015-2022).
  2. Go to the Microsoft Download Center and search for “Visual C++ Redistributable” or use the direct links for the latest supported versions (2015-2022, 2013, 2012, 2010, 2008).
  3. Download both the x86 (32-bit) and x64 (64-bit) versions of the needed package, even if your Windows is 64-bit, because many programs are 32-bit.
  4. Run each installer as administrator (right-click → Run as administrator).
  5. Restart your computer and try launching the program again.

If you’re unsure which version, install the latest Visual C++ 2015-2022 Redistributable (both x86 and x64) first, as it covers most modern apps. For older programs, also install the 2010 and 2013 packages.

Repair the Specific Application

If installing the redistributable doesn’t help, the problem may be with the application’s own files. Try these steps:

  1. Open Settings → Apps → Installed apps.
  2. Find the problematic program, click the three-dot menu, and select Advanced options (if available).
  3. Scroll down and click Repair. If that option isn’t there, uninstall and reinstall the program.
  4. For portable apps (no installer), re-download the files from the official source and replace the folder.

Many users report that reinstalling the program with the redistributable installed beforehand prevents the error from returning.

Use System File Checker (SFC) and DISM

Corrupted system files can also cause R6034. Windows 11 includes built-in tools to scan and repair them.

  1. Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin).
  2. Type sfc /scannow and press Enter. Wait for the scan to complete (this can take 10-20 minutes).
  3. If SFC finds issues but can’t fix them, run DISM /Online /Cleanup-Image /RestoreHealth and then run SFC again.
  4. Restart your PC.

These commands check the integrity of Windows system files, including the runtime DLLs. They don’t modify your personal files.

Check for Malware or Unwanted DLLs

Sometimes, a malicious program or a leftover DLL in the application’s folder can trigger R6034. The error occurs when a program loads a DLL from its own directory that isn’t the correct runtime. To rule this out:

  • Run a full antivirus scan using Windows Security (built-in) or a reputable third-party tool.
  • Look in the program’s installation folder for files named msvcr*.dll. If present, rename them (e.g., to msvcr100.dll.bak) to force Windows to use the system version—but do this only if you’re sure the program doesn’t need those specific files.
  • Check the program’s official support forum for known issues with Windows 11 and specific DLL conflicts.

Alternative: Use Compatibility Mode

If the program is older (designed for Windows 7 or earlier), Windows 11’s compatibility mode may help.

  1. Right-click the executable or shortcut and select Properties.
  2. Go to the Compatibility tab.
  3. Check Run this program in compatibility mode for and choose Windows 7 or Windows 8.
  4. Also check Run this program as an administrator.
  5. Click Apply and try launching it.

Compatibility mode doesn’t fix the missing runtime itself, but it changes how Windows loads the program, which can bypass the manifest issue in some cases.

Prevention for Developers and Advanced Users

If you develop software, R6034 is a build-time issue. The solution is to embed a proper application manifest that specifies the exact runtime dependency. In Visual Studio, this is done automatically when you use the default settings, but if you’re using a custom build system, ensure the manifest is included. For end users, the best prevention is to always install the redistributable packages that come with the software, and avoid downloading portable versions from unofficial sites that may strip them.

Frequently Asked Questions

Is R6034 dangerous?

No, it’s not a virus or a sign of malware. It’s a software compatibility error. However, if you downloaded the program from an untrusted source, the error could be accompanied by malicious files, so always run a security scan if you’re unsure.

Will reinstalling Windows fix R6034?

Usually not, because the problem is with the application, not the OS. A clean install might help if system files are corrupted, but it’s a last resort. Try the redistributable and SFC steps first.

Why does R6034 appear only on Windows 11 and not on Windows 10?

Windows 11 has stricter side-by-side assembly checks and may not include older runtime versions by default. Some programs that worked on Windows 10 because a runtime was pre-installed may fail on a fresh Windows 11 installation.

Can I just delete the msvcr DLL files?

No. Deleting system DLLs can cause more errors and potentially make Windows unstable. Always install the correct redistributable package instead.

Does the error affect all programs?

No, only programs that depend on the C runtime library and have a manifest issue. Most modern apps are fine because they bundle or properly declare their dependencies.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →