Enable DotNet 3.5 from command line
To enable DotNet 3.5 from command line, run following from elevated command prompt
dism.exe /online /enable-feature /featurename:NetFx3
Emma's OneNote for Microsoft Windows, Office and Programming
To enable DotNet 3.5 from command line, run following from elevated command prompt
dism.exe /online /enable-feature /featurename:NetFx3
If you install DotNet framework 4.0 on IIS server and then enable DotNet 3.0 or 3.5 WCF features, you might see following error when browse your application site made of ASP.NET 4.0 (or run on ASP.NET 4.0 application pool).
Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.TypeLoadException: Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′.
To resolve this issue, run the following from command line:
aspnet_regiis.exe /iru
The aspnet_regiis.exe file can be found in either