Forum Discussion

PaulRBoyer's avatar
PaulRBoyer
Copper Contributor
Jun 21, 2023

Windows Server 2019 Cannot Install .NET 3.5

I am running Windows Server 2019 (Version 1809, Build 17763.4499) and I cannot install .NET Framework 3.5. Below is the current installation status of the feature on my machine:

 

 

PS > Get-WindowsFeature -Name  NET-Framework-Features,NET-Framework-Core,NET-HTTP-Activation,NET-Non-HTTP-Activ

Display Name                                            Name                       Install State
------------                                            ----                       -------------
[X] .NET Framework 3.5 Features                         NET-Framework-Features         Installed
    [ ] .NET Framework 3.5 (includes .NET 2.0 and 3.0)  NET-Framework-Core               Removed
    [ ] HTTP Activation                                 NET-HTTP-Activation              Removed
    [ ] Non-HTTP Activation                             NET-Non-HTTP-Activ               Removed

 

 

Through hours of searching online I have not been able to discover a resolution to the issue I am seeing. I followed the installation steps in How to Install .NET Framework 3.5 on Windows 11/10 and Windows Server (Windows OS Hub) as this was the most complete guide. None of the suggested installation methods worked.

  1. Via Server Manager: Add roles and features -> Features -> .NET Framework 3.5 Features -> .NET Framework 3.5 (includes .NET 2.0 and 3.0 );
  2. Using DISM:
    DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
    1. Using DISM:
      DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /Source:D:\sources\sxs /LimitAccess
  3. With PowerShell:
    Install-WindowsFeature -Name NET-Framework-Core
    1. With PowerShell:
      Install-WindowsFeature -Name NET-Framework-Core -Source D:\Sources\SxS
  4. With DISM:
    DISM /online /Add-Package /PackagePath:D:\Sources\SxS\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab

I also tried using the offline packages from my installation media without success. And when trying to use GPO to force installation from / prohibit installation from Windows Update (non-WSUS) I did not see any results.

 

Regardless which method I use, I end up getting the same 0x800f0800 error. I've only come across one other user who has received the same error code when trying to install a Windows feature, but their resolution was just rebuilding their server. This is not a viable option for my scenario. The full error from PowerShell is displayed below:

 

 

PS> Install-WindowsFeature -Name NET-Framework-Core -Source D:\Sources\SxS

Install-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed. Error: 0x800f0800
At line:1 char:1
+ Install-WindowsFeature -Name NET-Framework-Core -Source D:\Sources\SxS
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
    Exception
    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
   owsFeatureCommand

 

 

Any help on this issue is greatly appreciated!

 

Crosspost: powershell - Windows Server 2019 Cannot Install .NET 3.5 - Server Fault

6 Replies

  • abbodi1406's avatar
    abbodi1406
    Steel Contributor

    Temporary extract the offline cab file from installation media and add it as regular update (not FOD)

     

    md %systemdrive%\tempnetfx3
    expand.exe -f:* D:\Sources\SxS\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab %systemdrive%\tempnetfx3 >nul
    
    dism.exe /Online /Add-Package /PackagePath:"%systemdrive%\tempnetfx3\update.mum"
    
    rd /s /q %systemdrive%\tempnetfx3
    • G0rdanPopovski's avatar
      G0rdanPopovski
      Copper Contributor

      Thanks this worked for me, had a bit of trouble creating and then running the file from the directory but eventually after some tinkering it worked. 

    • PaulRBoyer's avatar
      PaulRBoyer
      Copper Contributor

      abbodi1406 I followed the commands you provided to extract the files from the CAB archive. Then I used DISM.exe to add the ".mum" file to the system.

      What needs to be done next to finish installing .NET 3.5? I don't see it listed as "Installed" when I run

      Get-WindowsFeature

      .When I try to install it from the Server Manager GUI, I get the error:

      The parameter is incorrect. Error: 0x80070057
      • abbodi1406's avatar
        abbodi1406
        Steel Contributor
        Well, what dism.exe command result? that usually should already enabled it

Resources