Support ExpertRepair Guide  đź› 
Clear Windows repair instructions, diagnostic paths, and trusted resources in one place.
Repair Tool
Support Expert › Windows Repair Guides › Runtime Errors

Runtime Error Repair: A Complete Windows Troubleshooting Guide

Identify and repair supported Microsoft Visual C++, .NET, Windows App Runtime, DirectX, and application runtime failures—using the error evidence instead of replacing files at random.

Windows 10 & 1120-minute readUpdated September 16, 2026
Repair the runtime family the application actually uses.“Runtime error” describes when a program fails while starting or running. The safest repair depends on the program, its architecture, the exact error, and the runtime component named in the evidence.

What a runtime error actually means

A runtime supplies shared code that applications use while they execute. Windows applications may depend on Microsoft Visual C++ libraries, .NET or .NET Framework, the Universal C Runtime, DirectX components, Windows App Runtime, or prerequisites installed by the application itself. A failure can occur even when the named file exists: its version or processor architecture may be wrong, a dependent component may be missing, or the application may be loading an unintended copy.

Message or symptomLikely categoryBest first action
VCRUNTIME140.dll, MSVCP140.dll, or api-ms-win-crt-*.dllVisual C++ / Universal CRTRepair the application and the official supported Visual C++ packages it requires.
0xc000007b or “invalid image format”Architecture mismatch or damaged dependencyConfirm x86 versus x64, then repair the application and its official prerequisites.
“Side-by-side configuration is incorrect”Side-by-side assembly or manifestUse Event Viewer or sxstrace to identify the missing assembly before reinstalling it.
“.NET application failed to start” or CLR initialization error.NET runtime / frameworkDetermine the exact .NET family and version required by the publisher.
d3dx9_43.dll, xinput1_3.dll, or game launch failureLegacy DirectX side-by-side componentRun the game’s official prerequisite installer or Microsoft’s legacy DirectX runtime.
Only one program fails after an updateApplication files, add-in, settings, or compatibilityRepair or reinstall that program before changing Windows-wide components.
Do not download individual runtime DLLs from file-download sites.A DLL with the right filename can still be the wrong version, architecture, or a modified file. Use Windows servicing, the application installer, or the runtime publisher’s official package.

Record the evidence before repairing

Press Win + R, enter perfmon /rel, and open the failure in Reliability Monitor. For deeper detail, open Event Viewer and inspect Windows Logs → Application. The “faulting module,” exception code, activation context, or .NET Runtime entry often determines the next safe step.

Identify the runtime owner

  1. Start with application scope

    If only one program fails, repair or reinstall that program from its official installer. Its setup program knows which private files, services, add-ins, and prerequisites belong together.

  2. Map filenames to a runtime family

    VCRUNTIME, MSVCP, and many api-ms-win-crt errors point toward Visual C++ or UCRT. CLR, hostfxr, or framework-version messages point toward .NET. Direct3D, XAudio, XInput, and D3DX names point toward DirectX or game prerequisites.

  3. Confirm processor architecture

    A 32-bit program normally needs x86 dependencies even on 64-bit Windows. Do not replace an x86 file with an x64 copy or vice versa. The application publisher’s system requirements are authoritative.

  4. Use Windows evidence

    Correlate the time of the crash across Reliability Monitor and Event Viewer. A repeated faulting module is a useful lead; it is not automatic proof that the module itself is defective.

Safe runtime repair path

  1. Restart and install pending supported updates

    Restart Windows fully. Install pending Windows and application updates, then restart again. A servicing operation or application update may already contain the correct component.

  2. Repair the affected application

    Open Settings → Apps → Installed apps, select the program, and use Repair or Modify if offered. Otherwise reinstall it from the official publisher. Preserve licenses, profiles, and user data first.

  3. Repair the required official runtime

    Use the publisher’s documented prerequisite. Do not remove all runtime versions indiscriminately: applications can depend on different side-by-side releases.

  4. Repair Windows components when failures are system-wide

    Open Windows Terminal or Command Prompt as administrator and run DISM, followed by SFC.

    DISM.exe /Online /Cleanup-Image /RestoreHealth
    sfc /scannow

    Restart and test the same reproducible action.

  5. Isolate conflicts

    If the error continues, test without nonessential add-ins and overlays. A clean boot can identify a third-party service conflict, but restore normal startup afterward.

Repair Visual C++ Redistributables correctly

Visual C++ applications are built against specific runtime toolsets. The current supported Visual C++ v14 Redistributable services many applications built with Visual Studio 2015 and later, while older software may require an older side-by-side package. The application vendor should specify what it needs.

Why so many versions?Visual C++ packages are designed to coexist. An older business application and a current game may use different runtime generations or architectures.

Repair .NET and .NET Framework failures

Modern .NET and Windows .NET Framework are related but serviced differently. First read the application’s requirements. A modern application may require a particular .NET Desktop Runtime, while a legacy Windows application may depend on a Windows feature such as .NET Framework 3.5.

  1. Check the exact runtime/version named by the application or event log.
  2. For modern .NET, use Microsoft’s official .NET download and select the Desktop Runtime, Runtime, or Hosting Bundle only as documented.
  3. For .NET Framework included with Windows, use Windows Features and Windows Update rather than downloading random framework files.
  4. Repair or reinstall the affected application after the correct runtime is present.
  5. If several Windows components fail, run DISM and SFC as shown above.
A newer major .NET version is not always a substitute.Applications can target a specific major version or Windows feature. Install only supported versions from Microsoft and follow the vendor’s requirements.

Diagnose side-by-side configuration errors

Windows side-by-side activation uses application manifests to select a compatible assembly. Event Viewer commonly names the missing or conflicting assembly. For a trace, open an elevated Command Prompt:

sxstrace trace -logfile:%TEMP%\sxstrace.etl

Start the failing application once, return to the prompt, press Enter, then parse the trace:

sxstrace parse -logfile:%TEMP%\sxstrace.etl -outfile:%TEMP%\sxstrace.txt

Open the resulting text file and use the named assembly and architecture to repair the corresponding official package. A trace can contain paths and system details; review it before sharing.

DirectX and game runtime errors

Windows 10 and 11 include modern DirectX components, but some older games require optional legacy side-by-side libraries. This does not mean DirectX itself should be downgraded.

Advanced checks when the error persists

Clean boot

A clean boot starts Windows with Microsoft services and a limited startup set. If the problem disappears, re-enable groups of services until the conflict returns. Record the original configuration and restore normal startup after testing.

Security quarantine

Check Windows Security protection history or the approved enterprise security console. Restore a quarantined file only when its publisher, signature, and source are verified; otherwise reinstall the affected program from its official source.

New user profile

If the application works in a new local profile, the runtime may be healthy while the original profile contains damaged per-user settings, cache data, or add-ins.

Storage and memory

Repeated corruption across unrelated software can indicate storage, memory, or stability problems. Back up important data, review drive health, and use Windows Memory Diagnostic or hardware-vendor diagnostics.

When to use an in-place Windows repair

Consider an in-place repair only after multiple Windows applications fail, DISM and SFC cannot restore system health, and malware or hardware failure have been reasonably excluded. Back up data, confirm sufficient free space, suspend drive encryption protection if your documented procedure requires it, and use installation media matching the installed Windows edition and language.

Reduce future runtime failures

Runtime error decision table

What you observeMost useful next stepAvoid
One application failsRepair/reinstall that application and its documented prerequisites.Replacing Windows DLLs manually.
VCRUNTIME or MSVCP filenameRepair the correct official Visual C++ package and architecture.Removing every Visual C++ version.
Side-by-side configuration errorRead Event Viewer or an sxstrace report.Guessing which package is missing.
CLR or .NET host failureConfirm the app’s targeted .NET family and install/repair it officially.Assuming the newest version replaces all older requirements.
Several unrelated Windows apps failRun DISM, SFC, updates, and hardware/security checks.Reinstalling each app before checking Windows health.

Frequently asked questions

What causes a Microsoft Visual C++ runtime error?

Possible causes include damaged application files, a missing or incompatible redistributable, mixed architectures, an add-in conflict, corrupted Windows components, or a defect in the application. The exact message and crash evidence determine which is most likely.

Should I install both x86 and x64 Visual C++ packages?

Often yes on 64-bit Windows because 32-bit applications require x86 components and 64-bit applications require x64 components. Install only supported packages from Microsoft or the verified application installer.

Does DirectX 12 contain every older game runtime file?

No. Some older games require optional legacy side-by-side components. Use the game’s prerequisite installer or Microsoft’s official legacy DirectX runtime package.

Will SFC fix all runtime errors?

No. SFC repairs protected Windows system files. It will not normally repair third-party application files, every Visual C++ package, a missing modern .NET Desktop Runtime, or an application defect.

Is error 0xc000007b always a missing DLL?

No. It often indicates an invalid image format or x86/x64 mismatch, but damaged application files, runtime components, drivers, or Windows files can also contribute.

References and further reading

Scope and safetyThis guide covers supported diagnostic and repair methods. Runtime requirements vary by application and version. Back up important data before system repair, and consult the application publisher or a qualified technician when the required component cannot be verified.