Jun 21 2023 06:49 AM - edited Jun 21 2023 09:53 AM
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.
- Via Server Manager: Add roles and features -> Features -> .NET Framework 3.5 Features -> .NET Framework 3.5 (includes .NET 2.0 and 3.0 );
- Using DISM:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
- Using DISM:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /Source:D:\sources\sxs /LimitAccess- With PowerShell:
Install-WindowsFeature -Name NET-Framework-Core
- With PowerShell:
Install-WindowsFeature -Name NET-Framework-Core -Source D:\Sources\SxS- 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
Jun 21 2023 02:21 PM
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
Jun 21 2023 04:05 PM
@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
Jun 22 2023 05:25 AM
Jun 22 2023 06:41 AM
@abbodi1406 Here is the result from running DISM to add the feature using the method you suggested.
dism /online /add-package /packagepath:C:\temp\netfx3\update.mum
Deployment Image Servicing and Management tool
Version: 10.0.17763.3406
Image Version: 10.0.17763.4499
Processing 1 of 1 - Adding package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1
[==========================100.0%==========================]
The operation completed successfully.
Yet, when I check my installed/enabled Windows Features
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
Aug 10 2023 05:17 AM - edited Aug 10 2023 05:32 AM
Hi, I have exactly the same situation so I'm interested: Has someone found a solution?
Well, I just followed the steps as described by @abbodi1406 on Jun 21 2023 02:21 PM and for me this works great, after the last step I get this :
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
[X] .NET Framework 3.5 (includes .NET 2.0 and 3.0) NET-Framework-Core Installed
[ ] HTTP Activation NET-HTTP-Activation Available
[ ] Non-HTTP Activation NET-Non-HTTP-Activ Available