DISM.exe - feature installation stuck
Question / Problem:
When trying to install eFlow5
First, a side question – is DISM for Windows 2016 the same as for 2012 ?
Anyway, run the following scripts (from 2012) on Windows Server 2016 (as Administrator), like below.
The first DISM.EXE (related to IIS) resulted in the following error message:
Error: 50
The operation is complete but IIS-NetFxExtensibility feature was not enabled.
A required parent feature may not be enabled. You can use the /enable-feature /all option to automatically enable each parent feature from the following list. If the parent feature(s) are already enabled, refer to the log file for further diagnostics.
NetFx3, NetFx3ServerFeatures
The second DISM.EXE I modified, removed the /quiet switch to get the full output:
dism.exe /Online /enable-feature /FeatureName:NetFx3 /FeatureName:NetFx3ServerFeatures /FeatureName:WAS-WindowsActivationService /FeatureName:WAS-ProcessModel /FeatureName:WAS-NetFxEnvironment /FeatureName:WAS-ConfigurationAPI /FeatureName:WCF-NonHTTP-Activation /FeatureName:WCF-HTTP-Activation /FeatureName:WCF-HTTP-Activation45
Deployment Image Servicing and Management tool
Version: 10.0.14393.0
Image Version: 10.0.14393.2457
Enabling feature(s)
[===== 10.0% ]
And it gets stuck for 15 minutes.
In the Setup log I see only:
Initiating changes to turn on update WCF-HTTP-Activation45 of package Microsoft .NET Framework 4 WCF Components. Client id: DISM Package Manager Provider.
Then I finally press Ctrl+C to get
Error: 1223
Operation was incomplete because of a cancel request.
And in the log:
Update NetFx3 of package Microsoft .NET Framework 3.0 failed to be turned on. Status: 0x800f0820.
Answer / Solution:
the workaround was to add Roles and Features manually
Open Server Manager
Server Roles
In Roles assure the following Roles are enabled.
Web Server (IIS)
-
- Web Server
- Common HTTP Features
-
- Default Document
- Directory Browsing
- HTTP Errors
- Static Contents
-
- Health and Diagnostics
-
- HTTP Logging
- Logging tools
- Request Monitor
-
- Performance
-
- Static Content Compression
-
- Security
-
- Request Filtering
- Windows Authentication
-
- Application Development
-
- .Net Extensibility 4.6
- ASP.NET 4.6
- ISAPI Extensions
- ISAPI Filters
-
- Common HTTP Features
- Management Tools
- ISS Management Console
- Web Server
In “Features”, assure the following “Features” are enabled
Features
.NET Framework 3.5 Features
-
- .NET Framework 3.5 (includes .NET 2.0 and 3.0)
- Non-HTTP Activation
.NET Framework 4.6 Features
-
- .NET Framework 4.6
- ASP.NET 4.6
- WCF Services
- HTTP Activation
- TCP Port Sharing
Windows Process Activation Service
-
- Process Model
- .NET Environment 3.5
- Configuration APIs
They were using this DISM below, but it was not working.
DISM.EXE /enable-feature /online /quiet /featureName:IIS-WebServerRole /featureName:IIS-WebServer /featureName:IIS-CommonHttpFeatures /featureName:IIS-StaticContent /featureName:IIS-DefaultDocument /featureName:IIS-DirectoryBrowsing /featureName:IIS-HttpErrors /featureName:IIS-ApplicationDevelopment /featureName:IIS-NetFxExtensibility /featureName:IIS-ASPNET /featureName:IIS-NetFxExtensibility45 /featureName:IIS-ASPNET45 /featureName:IIS-ISAPIExtensions /featureName:IIS-ISAPIFilter /featureName:IIS-HealthAndDiagnostics /featureName:IIS-HttpLogging /featureName:IIS-LoggingLibraries /featureName:IIS-RequestMonitor /featureName:IIS-Security /featureName:IIS-WindowsAuthentication /featureName:IIS-RequestFiltering /featureName:IIS-Performance /featureName:IIS-WebServerManagementTools /featureName:NetFx4Extended-ASPNET45 /featureName:IIS-ManagementConsole /FeatureName:NetFx3 /FeatureName:NetFx3ServerFeatures /FeatureName:WAS-WindowsActivationService /FeatureName:WAS-ProcessModel /FeatureName:WAS-NetFxEnvironment /FeatureName:WAS-ConfigurationAPI /FeatureName:WCF-NonHTTP-Activation /FeatureName:WCF-HTTP-Activation /FeatureName:WCF-HTTP-Activation45
Enter How to here:
- How to Step 1
- How to Step 2
- How to Step 3
Applies to:
Product | Version |
---|---|
eFlow | 5.x |