加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

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

发布时间:2020-12-15 23:29:08 所属栏目:asp.Net 来源:网络整理
导读:我运行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 unhandl
我运行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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读