C#C
C#9mo ago
Turn2Jesus2

How to get .NET framework 4.8.1 installed on IIS Web Server running Windows Server 2019 via choco?

I've upgraded my .NET Framework website to .NET Framework 4.8.1. In my choco package which installs the website, I've switched the dependency to choco install netfx-4.8.1 --version 4.8.1.20250219
However, it always fails the installation.
It doesn't give me much to go on.

What do you recommend?
I've even ran the windows updates manually and it installed. I am hoping for an automated way vs. just installing the .NET Framework Runtime manually.

PS C:\Windows\system32> choco install netfx-4.8.1
Chocolatey v1.2.0 Business
Installing the following packages:
netfx-4.8.1
By installing, you accept licenses for the packages.

netfx-4.8.1 v4.8.1.20250219
netfx-4.8.1 package files install completed. Performing other installation steps.
Downloading netfx-4.8.1 64 bit
  from 'https://download.microsoft.com/download/4/b/2/cd00d4ed-ebdd-49ee-8a33-eabc3d1030e3/NDP481-x86-x64-AllOS-ENU.exe'.

Download of 'NDP481-x86-x64-AllOS-ENU.exe' (74.09 MB) completed.
Virus checking skipped/turned off. Not verifying 'NDP481-x86-x64-AllOS-ENU.exe'
Installing NDP481-x86-x64-AllOS-ENU.exe...
ERROR:
Running ['E:\apps\chocolatey\choco-cache\netfx-4.8.1\4.8.1.20250219\NDP481-x86-x64-AllOS-ENU.exe'  /Quiet /NoRestart /Log "E:\apps\chocolatey\choco-cache\netfx-4.8.1_4.8.1_20250403212348.log"] was not successful.
 Exit code was '5100' See log for possible error messages..
The install of netfx-4.8.1 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\netfx-4.8.1\tools\ChocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - netfx-4.8.1 (exited 5100) - Error while running 'C:\ProgramData\chocolatey\lib\netfx-4.8.1\tools\ChocolateyInstall.ps1'.
 See log for details.
Was this page helpful?