asp.net – 无法加载类型’System.ServiceModel.Activation.HttpModule’

前端之家收集整理的这篇文章主要介绍了asp.net – 无法加载类型’System.ServiceModel.Activation.HttpModule’前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我运行aspnet_regiis.exe仍然我得到相同的错误

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′.

请帮忙我紧急

解决方法

如果您运行 Windows 8,此方法将无法正常工作.微软不会让你运行这个命令,告诉你:

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

猜你在找的asp.Net相关文章