Failed to load xgameruntime.dll Error Code 126 on Windows 11 : Fix

Trying to load a game on your computer and encountering this “Failed to load xgameruntime.dll” message? The error message may contain some additional information, like, Error Code -126 alongside the prompt. We have delved deep into the origin of the issue and got the perfect solution for you to implement at your end to fix the problem.

 

Why am I having this problem with xgameruntime.dll?

The file xgameruntime.dll is a component of the Gaming Services, natively installed on the Windows 11 and 10. There are many games, generally the Xbox Game Pass games or the games that you have purchased on Microsoft Store requires the Gaming Services to run it.

But the corruption in the Gaming Services component may lead to this problem on your device. So, you can bypass the same problem by fixing the Gaming Services module on your device. Either try repairing or resetting the module, or, if that doesn’t help, you can use the terminal to remove and reinstall the Gaming Services on your system.

 



Fix 1 – Uninstall and reinstall the Gaming Services

The easiest of the two processes is the one that takes less effort. Just execute these three command to fix the ‘xgameruntime.dll’ issue on your system.

Step 1 – Search for “powershell” in the box.

Step 2 – Next, right-tap the “Windows PowerShell” and run it as system administrator.

 

powershell run as admin min 1

 

Step 3 – In the Microsoft PowerShell terminal, execute these three codes to uninstall and reinstall the Gaming Services package on your system.

get-appxpackage Microsoft.GamingServices
get-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers
start ms-windows-store://pdp/?productid=9MWPM2CQNLHN

 

get package min

 

After executing the third line of code, it will take you to the Gaming Services page on Microsoft Store.

Step 4 – Tap “Get” to install Gaming Services on your computer.

Once you have reinstalled the Gaming Services, it will fix the xgameruntime.dll file as well. You won’t face such problems again.

 

Fix 2 – Reset or repair the Gaming Services app

Resetting or repair the Gaming Services application to fix this issue.

Step 1 – Open up the Windows Settings.

Step 2 – Go to the “Apps” tab.

Step 3 – Load up the “Installed Apps” section.

 

installe apps min

 

Step 4 – Search for “Gaming services” to find the utility.

Step 5 – Next, right-click the “Gaming Services” app and tap “Advanced options“.

 

advanced op gaming services min

 

Step 6 – Use the “Repair” option first to repair the Gaming Services package.

Later, try to launch the game.

 



repair gaming services min

 

Step 7 If you are still facing the same problem, use the “Reset” option to reset the xgameruntime.dll file to fix the problem.

 

reset it min

 

After resetting the Gaming Services, the problem will be fixed for sure. Do keep in mind that you may have to restart to get the desired effects.

Hope this have helped you solve the issue!