win8 Could not load type System.ServiceModel.Activation.HttpModule 错误解决方案
发布时间:2022-05-01 21:48:08
win8下WCF 提示Could not load type System.ServiceModel.Activation.HttpModule 错误解决方法, 需要的朋友可以参考下 From:http://support.microsoft.com/kb/2015129
Symptoms
Consider the following scenario. You install the .NET Framework 4.0. Then, you install an earlier version of the .NET Framework, or you enable .NET 3.0 WCF HTTP Activation. In this scenario, you may receive the following error message when you when run applications that are hosted on Internet Information Services (IIS):
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'.
Cause
This issue occurs because the Applicationhost.config file for Windows Process Activation Service (WAS) has the following section defined, and this section is incompatible with the .NET Framework 4.0:
This section should be defined as follows:
Note You can find the Applicationhost.config file in the following location:
%windir%\system32\inetsrv\config
Resolution
To resolve this issue, run the following command line:
aspnet_regiis.exe /iru
The Aspnet_regiis.exe file can be found in one of the following locations:
%windir%\Microsoft.NET\Framework\v4.0.30319
%windir%\Microsoft.NET\Framework64\v4.0.30319 (on a 64-bit computer)
注意
以上方案在win8系统中无效,因为在最后一步运行 aspnet_regiis.exe /iru 命令时会失败,所以解决方案是找到 Applicationhost.config 文件(目录在%windir%\system32\inetsrv\config),然后把文件中的:
改为:
我目前只找到这种方案,如果有更好方案欢迎指出。
作者:Artwl
出处:http://artwl.cnblogs.com


猜你喜欢
- 以前我们学习word其中有一项功能是必学功能,那就是Word中的艺术字,其实在excel中也有艺术字用的人比较少,包括在excel中还有自选
- Excel提示由于本机的限制该操作已被取消怎么办?下面小编给大家带来Excel提示由于本机的限制该操作已被取消的解决方法,需要的朋友可以参考
- TunePat Spotify Converter是一种最终的解决方案,可以帮助用户以比其他Spotify音乐转换器更快的速度转换任何Spo
- 即便乘客在飞机上使用电子设备,但短期内多数时候坐飞机还是需要开启飞行模式的,下面为大家介绍下,Win8.1系统如何快速开启飞行模式以关闭网络
- 不少用户使用电脑删除文件时,却得到了没有权限的提示,这是因为删除文件必须先获取administrator权限,那么这应该如何解决呢?接下来小
- 首先打开Word 2007,然后粘贴要进行复制的文字。不要清除格式,保留原来的格式。下面进入“开始-编辑-替换”,点击“更多”按钮,然后将光
- Win7系统(大地 WIN7 64位 装机 终结版)QQ能登陆网页却打不开怎么办?最近有网友在电脑技术员交流群里反映,即打开电脑之后QQ顺利
- PPT如何实现图形的旋转?以WPS 2019版本为例:关于 PPT中如何调整视频 /图片/图形方向,您可考虑使用WPS2019( 9339版
- 最近不少朋友咨询Win11找不到DNS地址怎么办?其实解决方法很简单,本文就为大家带来了三种解决方法,需要的朋友一起看看吧一些使用Win11
- 【例】如下图所示,现需把AB列表格,转换为DE列格式,同户主的B列合并到一个单元格中。有好多方法可以解决这个问题,如公式、pq等,今天兰色就
- Word文档自动生成目录的方法分享。在Word文档创建文件的时候,如果我们建立了很多页面,那么我们可以去建立一个目录,这样查找内容可以在目录
- 在使用电脑的时候我们经常都会遇到这样或者是那样的问题,比如会遇到通用串行总线控制器出现黄色感叹号的情况,导致许多的usb口都没法使用,这时该
- 我们在更新了win10操作系统之后,有一部分小伙伴就遇见了win10电脑玩梦幻西游的时候没有声音了。对于这种问题小编觉得可能是误触了系统音量
- 微软公司在近日对于windows10操作系统的操作界面再次进行了相关的改进。此次主要是针对系统的音量弹出窗口进行整改,之后会在发布的win1
- 随着数据流量资费越来越低,为了方便用户下载软件,苹果在 iOS 12.3.1 发布时调整了 iPhone 和 iPad 移动数据下载限制,由
- ppt表格边框颜色该怎么设置?ppt表格为了突出数据,更方便查看,该怎么给表格边框设置颜色呢?下面我们就来看看给ppt表格设置不同颜色的教程
- 相信很多的小伙伴们都比较喜欢使用Bandicam,不过你们晓得使用Bandicam怎么录制游戏视频吗?接下来我们就一起往下看看Bandica
- BusyCal 3 是macOS中一款功能强大,灵活,可靠的日历应用程序。有菜单栏日历,可以添加计划任务,可以显示天气预报等等,支持iClo
- Win11更新后掉帧严重怎么办?最近很多都反映自己的电脑更新了Windows11系统后,玩游戏时总是出现掉帧的情况而且还非常严重,那么更新W
- 圣诞和新年假期后,微软开发团队复工,今天(1月4日)上午,Windows 10 19H1新预览版Build 18309面向快速通道(Fast