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,
PublicKeyToken=b77a5c561934e089′.
请帮忙我紧急
解决方法
This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the “Turn Windows Features On/Off” dialog,the Server Manager management tool,or the dism.exe command line tool.
原因是在这个链接:http://support.microsoft.com/kb/2736284.
对我有用的解决方案是在这个链接上发布的,在Neha的答复:System.ServiceModel.Activation.HttpModule error
Everywhere the problem to this solution was mentioned as re-registering aspNet by using aspnet_regiis.exe. But this did not work for me.
Though this is a valid solution (as explained beautifully here)
but it did not work with Windows 8.
For Windows 8 you need to Windows features and enable everything under “.Net Framework 3.5” and “.Net Framework 4.5 Advanced Services”.
Thanks Neha