I'm trying to install ASP.Net 3.5 in my windows docker container using the below command
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
I'm getting the below error
Deployment Image Servicing and Management tool Version: 10.0.17763.1
Image Version: 10.0.17763.615
Enabling feature(s) [==========================100.0%==========================]
Error: 1058
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
Also i tried different powershell commands like, but no luck. Getting same error
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET
Anyone faced this issue, Any workaround or solution?
Answered in https://superuser.com/questions/1498853/cannot-install-windows-feature-net-framework-features-in-docker-image
Example (using mcr.microsoft.com/windows:1809
):
PS> Set-Service -Name wuauserv -StartupType Manual
PS> DISM /Online /Enable-Feature:NetFx3 /All
Deployment Image Servicing and Management tool
Version: 10.0.17763.1282
Image Version: 10.0.17763.1457
Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With