Hello,
If you are getting this error after upgrading .NET version please follow these steps to fix this error:
Error:
============================>>>
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'.
============================>>>
Fixed:
--------------------------------
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -iru
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Start installing ASP.NET (4.0.30319.17929).
.......
Finished installing ASP.NET (4.0.30319.17929).
....................................................................................
C:\Windows\Microsoft.NET\Framework\v4.0.30319>iisreset
Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted
C:\Windows\Microsoft.NET\Framework\v4.0.30319>
============================
Thank you,