IIS is installed first, and then. NET framework4.0 is installed, so that you register. NET framework4.0 under CMD.
Steps
First step: Modify the configuration file%windir%/system32/inetsrv/config/applicationhost
<add name= "ServiceModel" type= "System.ServiceModel.Activation.HttpModule, System.ServiceModel,
version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "
precondition= "managedhandler,runtimeversionv2.0"/>
This node is already in the file (in general), as long as the partial modification (this step is ignored first, the second step, I only perform the second step will not error).
Step Two: Open the (%windir%/microsoft.net/framework/v4.0.30319) Aspnet_regiis.exe-iru file at the following address
(ASP. NET IIS Registration tool).
Fix failed to load from assembly "System.ServiceModel, version=3.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"