Unable to install .net

Handian Sudianto 7,241 Reputation points

I try install .net framework on my windows server 2019 but got below error even i have permission on the folde👁 User's image

Then i try to extract the exe file and run the setup file and got below error.👁 User's image

Try running netfx_core_x64 and got below error. Anyone know how to solve this erroer?👁 User's image

0 comments No comments

Sign in to comment

3 answers

  1. AI answer

    On Windows Server 2019, .NET Framework 4.x is built into the OS and isn’t installed by running the standalone web/offline installer. The message “You cannot use this setup program to install the .NET Framework” and the dialog from netfx_core_x64 (“.NET Framework 4 is already a part of this operating system, but it is currently turned off”) indicate that .NET is already present but disabled as a Windows feature.

    To resolve the issue, enable the built‑in .NET Framework feature instead of running the EXE:

    1. Open Server ManagerManageAdd Roles and Features.
    2. Go to Features.
    3. For .NET Framework 4.x, select .NET Framework 4.x Features (for example, .NET Framework 4.7 Features on Server 2019) and all required sub‑features.
    4. If the app also needs .NET Framework 3.5, enable .NET Framework 3.5 Features here as well. If installation fails with source‑file errors, use the Windows Server media and specify the \sources\sxs folder as the alternate source path as described in the .NET 3.5 installation article.
    5. Complete the wizard and let the server install the feature, then reboot if prompted.

    If the wizard reports that .NET 4.x is already installed, no further action is required for that version; focus on enabling any missing 3.5 feature if the application targets .NET 3.5 or earlier.

    The initial “Unable to create or save new files in the folder into which the files are being extracted” dialog is only from the self‑extracting EXE and can be ignored once using Server Manager instead; .NET should not be deployed on Server 2019 via that EXE.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Danny Nguyen (WICLOUD CORPORATION) 7,185 Reputation points Microsoft External Staff Moderator

    Hi @Handian Sudianto ,

    On Windows Server 2019, .NET Framework 4.7.2 is included with the OS. The key clue is your third screenshot: “Microsoft .NET Framework 4 is already a part of this operating system, but it is currently turned off.”

    So the first thing to do is enable the built-in .NET Framework 4.x feature in Server Manager → Add Roles and Features → Features, or in Turn Windows features on or off.

    After that:

    • If the application works, you can stop there.
    • If the application specifically requires .NET Framework 4.8, then install 4.8 separately after enabling the built-in framework.

    Microsoft’s documentation for Windows/Windows Server shows that Windows Server 2019 includes .NET Framework 4.7.2, and 4.8 is the latest supported upgrade:

    https://learn.microsoft.com/en-us/dotnet/framework/install/on-windows-and-server

    If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance or provide feedback.

    Thank you. 

    1. Handian Sudianto 7,241 Reputation points

      hi @Danny Nguyen (WICLOUD CORPORATION)

      The .net framework was installed any maybe was turn in in the server manager

      👁 User's image

    2. Danny Nguyen (WICLOUD CORPORATION) 7,185 Reputation points Microsoft External Staff Moderator

      Hi @Handian Sudianto

      Thank you for the follow up.

      Since it's shown that it's already installed, please check which exact .NET Framework 4.x version is installed rather than trying to reinstall it. On Windows Server 2019, Microsoft documents that the OS includes .NET Framework 4.7.2, and 4.8 can be installed separately if required.

      You can verify the installed version using the registry or PowerShell, following Microsoft’s guide:

      https://learn.microsoft.com/en-us/dotnet/framework/install/how-to-determine-which-versions-are-installed

      For example, run:

      reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" /v Release

      or in PowerShell:

      Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' | Select-Object Release

      Then compare the Release value with Microsoft’s version table.

    3. Handian Sudianto 7,241 Reputation points

      Hello,

      Here the result and confirmed that .net 4.7.2 was installed

      👁 User's image

    4. Danny Nguyen (WICLOUD CORPORATION) 7,185 Reputation points Microsoft External Staff Moderator

      The Release value 461814 means .NET Framework 4.7.2 is already installed, so there is no need to reinstall 4.7.2.

      The next step is to check whether .NET Framework 4.8 may already have been installed as a Windows update. On Windows Server 2019, Microsoft notes that .NET Framework 4.8 is listed under Installed Updates in Control Panel as Update for Microsoft Windows (KB4486153).

      So at this point I would suggest:

      • If the application needs 4.7.2 or earlier, .NET is already installed.
      • If it needs 4.8, check Installed Updates for KB4486153 first.
      • If KB4486153 is not present, then install .NET Framework 4.8 separately.

      Reference:

      https://support.microsoft.com/en-us/topic/microsoft-net-framework-4-8-offline-installer-for-windows-9d23f658-3b97-68ab-d013-aa3c3e7495e0

    5. Handian Sudianto 7,241 Reputation points

      Hi..

      No KB4486153 installed and if you see my initial post i got error when manually install the .net 4.8

      👁 User's image


    Sign in to comment
Sign in to answer

Your answer