If you encounter the error in title with the detail as shown below:

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

The chances are your ASP.NET registration is corrupted by some updates. You can correct it by issuing the following command in Visual Studio command prompt:

aspnet_regiis -iru


For users running Windows Server 2012 R2, please follow the steps shown below to overcome the error -

  1. Open IIS Manager and select the webserver and select Modules (found under header IIS)
  2. Remove the module ServiceModel
  3. Go back to IIS Manager, select the webserver again in IIS, and select Handler Mappings (found under header IIS)
  4. Remove the handler svc-Integrated
  5. Restart IIS by using an elevated cmd prompt and issue this command: IISRESET <enter>
  6. When IIS is running again add WCF by going to "Turn Windows Features On and Off" and enable .NET Framework 4.5 Features > WCF Services > HTTP Activation
  7. Restart IIS by using an elevated cmd prompt and issue this command: IISRESET <enter>