Fix: An error has occurred while launching the game COD MW2 / Warzone
The error message “An error has occurred while launching the game” appears when the Steam or Battle.net client is unable to start the game. This can happen if the game files on your computer are corrupted, the game doesn’t have the necessary permissions to run in Windows, or for several other reasons.

Sometimes, this problem can also happen if the Battle.net client is currently updating on your PC—updates can interrupt the game from starting. In this article, we’ll walk you through several easy ways to fix this error.
1. Run COD MW/Warzone from the Installation Folder
In certain situations, the shortcut you use to launch the game may not point to the correct game file. If this happens, the game won’t start at all.
Also, issues with the Battle.net client can prevent the game from starting correctly. To fix this, try running the game directly from its installation folder:
- Open File Explorer.
Opening File Explorer - Navigate to the COD MW / Warzone installation folder.
- Double-click on ModernWarfare.exe or cod.exe to start the game.
Running the cod.exe File - See if the game launches normally this way.
2. Run COD MW/Warzone as an Administrator
If the game doesn’t have the right permissions to run, it may not start. This can sometimes be caused by third-party security software or other programs blocking it.
- Open File Explorer.
Opening File Explorer - Go to the Call of Duty MW/Warzone installation directory.
- Right-click on ModernWarfare.exe or cod.exe, and choose Properties.
- Go to the Compatibility tab.
- Check the box that says Run this program as an administrator.
Running COD Warzone as Admin - Click Apply and then OK.
- Try starting the game again to see if the issue is fixed.
3. Restart Your PC
Simple as it seems, restarting your computer can often fix unexpected errors. Sometimes, drivers or other system components aren’t working properly and need to be reset.
Restarting your PC reloads everything and might solve the problem. If the error message still appears after a restart, continue to the next step.
4. Stop the Battle.net Update Process in Task Manager
If Battle.net is updating itself in the background, any games you try to launch through it may not start. You’ll need to stop the update process before you can play.
- Right-click the Start Menu and select Task Manager.
Opening the Task Manager - Find the Battle.net Update Agent process.
- Select it and click End task.
Ending Battle.net Update Process - Try launching the game again to see if it works.
5. Delete Temporary Data Files
Sometimes, small data files or save files left over in the installation folder can cause problems if they become corrupted. These may be temporary files or crash reports. Removing these temporary files can often resolve the issue.
- Close Battle.net completely.
- Open File Explorer.
Opening File Explorer - Go to the Call of Duty Modern Warfare installation folder.
- Navigate to the Data > data folder.
Warzone Data Folder - Sort the files by size and delete any files that are 0 to 1 KB in size.
- Open the Start Menu, search for Battle.net, and choose Run as administrator.
Running Battle.net as Admin - Try launching the game through the Battle.net client to see if the error is resolved.
6. Clear the Battle.net Cache
Battle.net stores some temporary files (cache) to help it run smoother. But if these files get corrupted, it could prevent the game from launching. Deleting these files will force Battle.net to make new ones and can fix several issues.
- First, close Battle.net if it’s running.
- Press Windows + R to open the Run box.
- Type %appdata% and press Enter.
Opening AppData Directory - In the window that opens, find and delete the Battle.net folder.
Deleting Battle.net Folder - Repeat the same for %programdata% and %localappdata%. Open the Run box again for each, type in the phrase, press Enter, and delete the Battle.net folder found in each.
Opening ProgramData Directory - Restart Battle.net and check if the issue is resolved.
7. Change the Game Region
If the region selected in the Battle.net client does not match the region you are actually playing from, you may experience problems. It’s always best to set your game region to where you really are.
- Open the Battle.net client.
- Go to the Call of Duty Modern Warfare page.
- Click the globe icon above the Play button.
Changing Game Region - Select the region that matches your real location.
- Restart Battle.net and see if the error is fixed.
8. Remove Command Line Options
Sometimes, custom launch options or command-line parameters entered in Battle.net can clash with the game and prevent it from starting. These are similar to launch options in Steam.
- Open Battle.net.
- Go to Call of Duty Modern Warfare.
- Click the gear icon and choose Game Settings.
Navigating to Game Settings - Uncheck Additional command line arguments to remove all custom options.
Warzone Command Line Options - Try to launch the game again.
9. Repair the Game Files
If your game files are corrupt or missing, the game may not run as expected. Fortunately, Battle.net lets you check and repair these files easily.
- Open the Battle.net client.
- Select Call of Duty MW / Warzone.
- Click the gear icon next to the Play button.
- Select Scan and repair from the menu.
Repairing Call of Duty Warzone - Wait while Battle.net repairs your game files.
- Check if the error message still appears after the repair.
10. Change the Installation Directory
The location where your game is installed can sometimes cause issues, especially if it’s not on your main system drive or not in the default path. To fix this, you may need to move the game to a different folder or even a different drive.
- Copy the entire game folder to your new desired location.
- Uninstall the game using the Battle.net client.
- Start reinstalling the game in Battle.net, then pause the download after a short while.
- Copy your previously saved game files into the new download location and overwrite any files if asked.
- Resume the download—Battle.net will detect your existing files and complete the setup. This can help fix installation path-related errors.
11. Reinstall Call of Duty MW/Warzone
If nothing else has worked, the issue may be deeply rooted in the game installation itself. In this case, uninstalling and reinstalling the game is often the best solution.
- Open the Battle.net client.
- Click the Modern Warfare icon.
- Click the settings icon next to the Play button and choose Uninstall.
Uninstalling Call of Duty Warzone - Once uninstalled, download and install a fresh copy of the game. The error should now be fixed.