Couldn't install Microsoft.Net.4.8.FullRedist.20H2 when I try to install Visual Studio

Yicheng Zhou 1 Reputation point
2023-01-01T14:02:37.867+00:00

Something went wrong with the install.

You can troubleshoot the package failures by:

1. Search for solutions using the search URL below for each package failure  
2. Modify your selections for the affected workloads or components and then retry the installation  
3. Remove the product from your machine and then install again  

If the issue has already been reported on the Developer Community, you can find solutions or workarounds there. If the issue has not been reported, we encourage you to create a new issue so that other developers will be able to find solutions or workarounds. You can create a new issue from within the Visual Studio Installer in the upper-right hand corner using the "Provide feedback" button.

================================================================================

Package 'Microsoft.Net.4.8.FullRedist.20H2,version=4.8.9037.6' failed to install.
Search URL
https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.Net.4.8.FullRedist.20H2;PackageAction=Install;ReturnCode=-2146498270
Details
Command executed: "C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.4.8.FullRedist.20H2,version=4.8.9037.6\dotNetFxLatest-x86-x64-AllOS-ENU.exe" /q /norestart /KeepAUPaused /ChainingPackage Visual_Studio_15_Setup /CEIPconsent /log "C:\Users\Harry Zhou\AppData\Local\Temp\dd_setup_20230101085645_001_Microsoft.Net.4.8.FullRedist.20H2.log"
Return code: -2146498270
Return code details: Unknown error (0x800f0922)
Log
C:\Users\Harry Zhou\AppData\Local\Temp\dd_setup_20230101085645_001_Microsoft.Net.4.8.FullRedist.20H2.log
Impacted workloads
Visual Studio core editor (Microsoft.VisualStudio.Workload.CoreEditor,version=17.4.33006.217)
Impacted components
Visual Studio core editor (Microsoft.VisualStudio.Component.CoreEditor,version=17.4.33006.217)

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
964 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
    2023-01-02T07:40:20.453+00:00

    Hello @Yicheng Zhou ,

    Welcome to Microsoft Q&A forum.

    Please try following:

    1. Go to this C:\ProgramData\Microsoft\VisualStudio\Packages directory, and search "Microsoft.Net.4.8.FullRedist.20H2,version=4.8.9037.6" package. If it exists, please open this folder and check if there’s any .msi or .exe file, try to right-click them and run it/them as administrator(install manually).
    2. Try to update Windows OS and install any pending updated Windows Updates in Settings > Windows Update.
    3. Try to remove this folder("Microsoft.Net.4.8.FullRedist.20H2,version=4.8.9037.6") and continue/retry/repair installing VS.
    4. Please try to download Microsoft .NET Framework 4.8 offline installer to install .NET Framework 4.8. If it installs successfully, please then reboot your machine and retry installing VS.
    5. Please also make sure that you have enough permissions to install VS, and there’s no local group policy and limits. Please also try to disable antivirus software temporarily and retry installing VS.

    Update1:

    Here are some other suggestions that you can try:

    1. Run CMD as administrator and run DISM.exe /Online /Cleanup-image /Restorehealth, after that run sfc /scannow command.
    2. Try to reboot your machine and install VS again.

    Feel free to let us know if any of above suggestions work.

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    2 people found this answer helpful.
    0 comments No comments