未能从程序集“System.ServiceModel, Version=3.0.0.0”中加载类型“System.ServiceModel.Activation.HttpModule” 的解决办法

未能从程序集“System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加载类型“System.ServiceModel.Activation.HttpModule”。

这个问题网上有太多同样的说法,基本都是 aspnet_regiis.exe -i -enable 或 aspnet_regiis.exe -iru 等,然后就解决了问题。

前几天给一个小东西从一台windows 2012移到另一台windows 2012 r2上。

结果就出现了这个问题,依网上查到的说法打命令、重装IIS来回折腾至半夜终不得解。

Windows 2012 R2 IIS8 下 指令无效。

后来再codeproject上看到一文

http://www.codeproject.com/Articles/613812/Solve-IIS-Error-Could-not-load-type-System-Servi

在IIS管理器中的机器名节点下

删除 模块 ServiceModel

Find “ServiceModel” and remove it.

删除 处理程序映射 svc-Integrated 

Find “svc-Integrated” and remove it.

删除后问题得以解决

posted @ 2016-03-29 16:28  yusufeng  阅读(693)  评论(0编辑  收藏  举报