What is xgameruntime, and how to fix xgameruntime.dll error code 126 in Among US, Dungeons, or Dirt 5?
8 Fixes for the "Failed to Load xgameruntime.dll Error Code 126"
| Method | Purpose | Why it works |
| Restore core DLLs | Fixes corruption | |
| Full refresh of Gaming Services | Removes broken installs | |
| Fix Windows system files | Repair damaged system DLLs | |
| Download the DLL file | Regain the DDL file | Recover missing DLLs |
| Fix dependency mismatches & runtime bugs | Removes runtime 126 errors | |
| Ensure the bundle DLL is present | Restores missing files | |
| Register the DLL in the registry | Useful for COM-based issues | |
| Whitelist the antivirus app | Add the game/app folder to antivirus exclusions | Prevents false positives from deleting DLLs |
When you open your Windows 10 and 11 and try to launch your games like Among US, No Man's Sky, Flight Simulator, or Dungeons, instead of loading into the game, you get the message "Failed to load xgameruntime.dll. Error code: 126." What does it mean?
The error code 126 often occurs when Windows fails to find or load the xgameruntime.dll file, an essential file for games using Microsoft Gaming Runtime. This is due to issues related to DLLs, such as a missing DLL file, corrupted game files, outdated drivers, antivirus software, or even a system failure.
The xgameruntime.dll is part of Microsoft's Gaming Services/Xbox infrastructure. If that service is corrupted, the DLL won't load. You can also repair or reset the damaged files with the tool.
Step 1. Go to Settings (Hotkey: Windows+I) > Apps > Installed Apps > Gaming Services (On Windows 11: Apps & features > Gaming Services.)
Step 2. Tap three dots on the side, and click "Advanced Options."
Step 3. Scroll down and tap "Repair."
Step 4. If it doesn't work, reset it.
This completely refreshes the Gaming Services app and its dependencies (including the DLL), eliminating corruption issues.
Step 1. Type PowerShell in the search window and open PowerShell as an administrator.
Step 2. Enter the following commands one by one and hit Enter.
get-appxpackage Microsoft.GamingServices
get-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers
start ms-windows-store://pdp/?productid=9MWPM2CQNLHN
Step 3. The Gaming Services will open in the Microsoft Store, log in to the store, and download it.
Step 4. Install the latest Microsoft DirectX.
Step 5. Then, restart the system and open the game.
System File Checker (SFC) is a Windows utility that scans and repairs missing or damaged system files—including DLLs in C:\Windows\System32—restoring xgameruntime.dll if it's corrupted.
Step 1. Open your command prompt as an admin.
Step 2. Run sfc /scannow.
The xgameruntime.dll file might be missing or corrupted and cannot be repaired. In such a case, you can download and install the latest version of the DLL file from a trusted source to fix the issue.
Step 1. Visit https://www.dll-files.com/xgameruntime.dll.html on Google, and you'll see the file on dll-files.com.
Step 2. Download the file, extract it, and copy the file to your C drive > Windows > System32.
Step 3. Restart the system.
Error 126 can occur due to dependencies missing from out-of-date runtime components or driver issues. Updating outdated graphics drivers from the manufacturer's website might be helpful.
Step 1. Check which graphics driver you are using on your PC:
Right-click the Windows start button and choose "Device Manager."
Expand "Display adapters" and right-click it to select "Properties."
Under the Driver tab, check the details.
Step 2. Visit the GPU manufacturer's site and download the latest drivers.
Step 3. Go to Settings > Windows Update and ensure you are using the latest Windows version.
Some apps bundle critical files like xgameruntime.dll locally within their installation folder—not in Windows system directories. Uninstalling and reinstalling ensures that all original files are restored.
Step 1. Restart your PC and open Steam.
Step 2. Right-click the affected game and select "Properties."
Step 3. Go to Local Files and click Verify integrity of game files....
Step 4. Relaunch the game if the error is solved.
Then, you can reinstall the game manually.
Step 1. Open Control Panel > Programs & Features, or use the platform's uninstall feature.
Step 2. Uninstall the affected game or app.
Step 3. Optionally delete the installation folder to ensure a clean start.
Step 4. Reinstall via installer, CD, download, or the app store.
Step 5. Launch the app/game and confirm the error is fixed.
Registers it in the system registry. However, xgameruntime.dll isn't a classic COM object, so this often doesn't apply—but Windows might need the correct registry mapping.
Use the command:
regsvr32 xgameruntime.dll
Sometimes, antivirus tools mistakenly quarantine DLLs during installation or launch processes. This can be a hidden cause behind missing files. If reinstalling doesn't help, try:
Step 1. Open Start and search Windows Security.
Step 2. Go to Virus & threat protection > Manage settings.
Step 3. Toggle off the real-time protection.
If Defender quarantined xgameruntime.dll:
Step 1. Open the command prompt as an admin.
Step 2. Go to Defender's folder:
cd "%ProgramFiles%\Windows Defender"
Step 3. List quarantined items:
MpCmdRun.exe -restore -listall
Step 4. Restore the DLL using its threat name or filename.
MpCmdRun.exe -restore -name "ThreatName"
Or specify path:
MpCmdRun.exe -restore -name "ThreatName" -Path C:\RestoreFolder
Step 1. Open Windows Security > Virus & threat protection > Manage settings> scroll to Exclusions and click Add or remove exclusions.
Step 2. Click Add an exclusion > choose Folder > select your game/app installation folder.
Step 3. Confirm, so Defender will ignore that folder in future scans.
Sharing is caring!
If you are looking for a reliable, natural, and realistic voice changer for PC, you must not miss out on EaseUS VoiceWave, an RVC voice changer that works with 1000+ online games and 1000+ messaging apps. With 300+ AI voices and 300+ soundboards, you can find any voice you want, female, kid, male, anime girl, Bluudud, and more.
Key Features
This article lists possible causes and solutions for the "Failed to load xgameruntime.dll. Error code 126" issue. To fix it, you can try reinstalling Gaming Services or the affected game, downloading the required xgameruntime.dll file, updating your graphics drivers, or whitelisting the game in your antivirus settings.
If you're looking to enhance your gaming experience further, EaseUS VoiceWave is a great addition. It offers natural and authentic voice conversion with minimal delay—perfect for real-time voice changing during gameplay.
Related Articles
Best K-POP AI Voice Generator List in 2025
Destiny 2 Voice Chat Not Working - 5 Fixes
Top 3 Draft Punk Voice Changers to Get Robotic Sound
12 Omegle Alternatives in 2025 [Best Free Video Chat Platforms]