You can try these steps to fix it:
1. Run the installer as administrator
Right click the visual studio installer-> Run as administrator
This ensures it has necessary permissions to access the system and network.
2. Clear Visual Studio Installer Cache
Corrupted cache files can cause download error
· Press windows+R, type
%ProgramData%\Microsoft\VisualStudio\Packages
Delete the contents of this folder.
· Then delete installer cache:
Press Windows+R, type:
%ProgramData%\Microsoft\VisualStudio\Installer
Delete the contents of this folder too.
3. Check Proxy , VPN, or Firewall Settings
· Disable any VPN or proxy temporarily.
· Ensure your firewall or antivirus is not blocking the installer.
· Add exceptions for
*.visualstudio.com
*.microsoft.com
4. Use the visual studio layout installer(offline mode)
If the installer keeps failing, you can download the full offline installer.
Command:
Vs_enterprise.exe --layout c:\VS2022Offline --lang en-US
(Replace Vs_enterprise.exe with the version you are using)
This will download all the files locally, bypassing the issue.
5. Ensure Required Services are running
Open services.msc and ensure these are running:
· Windows update
· Background intelligent transfer service.
6. Reinstall Visual Studio Installer