Share via

SQL Server 2022 install on Windows 10 fails with error that .NET is not installed, but it is installed and up to date

MJ Skeet 45 Reputation points
2023-03-23T18:04:44.7966667+00:00

I have installed SQL Server 2022 Developer edition successfully on a Windows 10 and 11 virtual machine. The issue is that I cannot install it on a physical machine. During the install, I get the following fatal error. I have tried to install the latest .NET Framework, and my OS says it's already installed. I tried to install 4.0 .NET and the message is that it's included with my installed version. I tried to install 2.0 .NET framework, and the installer doesn't launch. The error's help link is dead. I've attached the log file.2023-03-22_10-36-55

Component name:                SQL Server Setup Support Files
  Component error code:          -2147483648
  Component log file:            C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20230323_112030\SqlSupport_Cpu64_1.log
  Error description:             The Microsoft .NET Framework 2.0 or 4.0 must be installed on your computer before you can install Microsoft SQL Server 2022 Setup Support Files. Please install the .NET Framework 2.0 or 4.0 and then install Microsoft SQL Server 2022 Setup Support Files.
  Error help link:               https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=16.0.1000.6&EvtType=SqlSupport.msi%40CA_ErrorPrereqDotNet20Or40%40-2147483648
Developer technologies | .NET | Other
SQL Server | Other

11 answers

Sort by: Most helpful
  1. Virender Jain 65 Reputation points
    2025-01-24T05:33:54.8366667+00:00
    0 comments No comments

  2. pjellison 0 Reputation points
    2024-08-08T18:41:44.8066667+00:00

    Here is what I found to fix the issue where SSMS fails to install due to .Net issues (.Net is already installed):

    From Administrator Powershell Command window run: Uninstall-WindowsFeature -Name NET-Framework-45-Features

    Reboot your machine (in my case a Windows 2022 Azure VM)

    Open a DOS Command window as administrator and run: DISM /Online /Enable-Feature /FeatureName:NetFx4 /All

    IF SSMS is shown as installed via Control Panel - Programs, run the SSMS_setup.exe and chose uninstall. After the uninstall removes the failed attempt, re-run SSMS_setup.exe and chose Install.

    Spent way too much time chasing / following bad advice. This worked and will be given to the MS tech that was assigned my ticket. Seems I know better then they do.

    0 comments No comments

  3. Norman Simoneau 40 Reputation points
    2023-04-29T01:18:22.56+00:00

    I got it to work by right-clicking on setup.exe and running as administrator (After installing Visual Studio 2019 and restarting.)

    0 comments No comments

  4. Seeya Xi-MSFT 16,676 Reputation points
    2023-03-24T03:12:37.0466667+00:00

    Hi @MJ Skeet ,

    Here are some suggestions:

    Check the version of .NET Framework installed: Make sure that you have installed the correct version of .NET Framework required by SQL Server 2022. SQL Server 2022 requires .NET Framework 4.6 or later. You can check the version of .NET Framework installed by opening the Registry Editor (regedit) and navigating to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full. The version number should be displayed under the "Version" key.

    User's image

    Repair .NET Framework: https://www.makeuseof.com/windows-repair-net-framework/

    Restart the computer: Sometimes, simply restarting the computer can resolve issues related to the installation of .NET Framework.

    Use the SQL Server Installation Center: Instead of running the setup.exe directly, try using the SQL Server Installation Center to install SQL Server 2022. This tool can automatically detect and install any missing prerequisites, including .NET Framework.

    Check Windows updates: Ensure that your Windows 10 operating system is up to date with the latest updates. You can check for updates by going to "Settings" > "Update & Security" > "Windows Update" and clicking "Check for updates".

    Best regards,

    Seeya


    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".

    0 comments No comments

  5. Sedat SALMAN 14,290 Reputation points MVP Volunteer Moderator
    2023-03-23T19:50:32.62+00:00

    Since you've already tried installing different versions of .NET Framework, it's possible that the installation is getting blocked by a Windows security feature. To resolve the issue, try the following:

    1. Right-click the SQL Server 2022 setup file and choose "Properties."
    2. In the "General" tab, click "Unblock" if it's available, then click "Apply" and "OK."
    3. Re-run the SQL Server 2022 setup.

    This should allow the installation to proceed without the .NET Framework error.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.