Error Code 21 This could mean the redistributable is outdated or corrupted
What Causes Error Code 21?
Sonar relies on Microsoft’s Visual C++ 2015–2022 Redistributable (x64) to function correctly. If that component is broken or out of date, Sonar won’t be able to launch and will throw Error Code 21.
How Do I Fix It?
You can resolve the error in one of two ways:
Repair the Existing Redistributable
1. Open Windows Settings
2. Go to Apps > Installed Apps
3. In the search bar, type: "redistributable"
4. Locate Microsoft Visual C++ 2015-2022 Redistributable (x64)
5. Click the three dots next to it and select Modify
6. Choose Repair and follow the prompts
Install the Latest Version of Microsoft Visual
1. Visit Microsoft’s official page:
2. Download the latest version of the 2015–2022 Redistributable (x64)
3. Run the installer and complete the setup
How Can I Prevent This Error in the Future?
To avoid this issue from happening again, make sure to keep Windows and all software up to date and periodically check for updates to the Microsoft Visual C++ Redistributable!
GLHF!