Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing ASP.Net 3.5 in docker container

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?

like image 601
Mathiyazhagan Avatar asked Aug 31 '25 10:08

Mathiyazhagan


1 Answers

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.
like image 57
Iron Bishop Avatar answered Sep 03 '25 01:09

Iron Bishop