Posted by Eswar Koneti on April 13th, 2012
In my Recent post,I posted how to enable .net framework feature in windows 7 http://eskonr.com/2012/04/enable-net-framework-3-5-1-feature-in-windows-7/ but need to enable sub functions in it they are Windows communication foundation features.
If you try to add these two features in additions to .net framework using DISM,it doesn’t work and you will get error :50 in execmgr.log due to missing elements required for HTTP Activation.
I tried enabling these features using command line manually with : Dism.exe /online /Enable-Feature /FeatureName:NetFx3 /FeatureName:WCF-HTTP-Activation /FeatureName:WCF-NonHTTP-Activation
It failed with error code 50 saying The operation completed but WCF-HTTP-Activation feature was not enabled. Ensure that the following parent feature(s) are enabled first. If they are already enabled, refer to the log file for further diagnostics.
IIS-NetFxExtensibility, IIS-ApplicationDevelopment, IIS-WebServer, IIS-WebServer Role, IIS-RequestFiltering, IIS-Security, WAS-ProcessModel, WAS-WindowsActivationService, WAS-NetFxEnvironment, WAS-ConfigurationAPI
This needs other components to enable like IIS and Windows process activation etc.
Create a batch script with the following command and advertise onto collection.
Dism.exe /online /Enable-Feature /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServer /FeatureName:IIS-ApplicationDevelopment /FeatureName:IIS-Security /FeatureName:IIS-RequestFiltering /FeatureName:IIS-NetFxExtensibility /FeatureName:WAS-WindowsActivationService /FeatureName:WAS-ProcessModel /FeatureName:WAS-NetFxEnvironment /FeatureName:WAS-ConfigurationAPI /FeatureName:NetFx3 /FeatureName:WCF-HTTP-Activation /FeatureName:WCF-NonHTTP-Activation
Hope it helps.