位置: 编程技术 - 正文

win8 Could not load type System.ServiceModel.Activation.HttpModule 错误解决方案

编辑:rootadmin
From:  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):

推荐整理分享win8 Could not load type System.ServiceModel.Activation.HttpModule 错误解决方案 ,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ba5ce'. 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=ba5ce'.

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:

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ba5ce" preCondition="managedHandler" />

  This section should be defined as follows:

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ba5ce" preCondition="managedHandler,runtimeVersionv2.0" />

  Note You can find the Applicationhost.config file in the following location:

%windir%systeminetsrvconfig

win8 Could not load type System.ServiceModel.Activation.HttpModule 错误解决方案

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.NETFrameworkv4.0.

%windir%Microsoft.NETFrameworkv4.0. (on a -bit computer)

注意

  以上方案在win8系统中无效,因为在最后一步运行 aspnet_regiis.exe /iru 命令时会失败,所以解决方案是找到 Applicationhost.config 文件(目录在%windir%systeminetsrvconfig),然后把文件中的:

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ba5ce" preCondition="managedHandler" />

  改为:

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ba5ce" preCondition="managedHandler,runtimeVersionv2.0" />

  我目前只找到这种方案,如果有更好方案欢迎指出。作者:Artwl 出处:

如何关闭Win8系统更改计算机的消息通知 微软今日向Windows8或WindowsServer用户推送了首个Windows8软件更新包。为了系统安全,Windows8延续了Windows7的更改计算机就会有提示信息弹出功能。如果你

如何解决Windows 8在桌面上总是显示大小写锁定和数字锁定图标的问题 Windows8发布预览版ThinkPad及部分LenovoVVLenovoBB昭阳KE等商务机型知识点分析:取消屏幕上显示的CapsLock以及NumLock切换时的提示图标。操作步骤:没

让Win8文件资源管理器显示全路径的设置方法 Win8文件资源管理器窗口中文件路径的显示方式为只显示当前窗口文件所在文件夹的名称,如果你觉得不喜欢,想要显示该文件的完整路径?没问题,小

标签: win8 Could not load type System.ServiceModel.Activation.HttpModule 错误解决方案

本文链接地址:https://www.jiuchutong.com/biancheng/366551.html 转载请保留说明!

上一篇:Windows 8调整回收站大小的方法(win10回收站设置)

下一篇:如何关闭Win8系统更改计算机的消息通知(win8怎么关闭电脑)

  • 房屋出租何时缴税
  • 漏缴的印花税如何补交
  • 个人所得税报税孩子的夫妻双方都报吗
  • 劳务收入个税需要进行所得税汇算吗
  • 现金股利缴纳个人所得税
  • 苗木属于农产品中哪一类
  • 企业之间无偿借款
  • 如何在房产证上加父母名字
  • 制造业主要生产工艺
  • 母公司为子公司担保是利好还是利空
  • 权益法下股权投资
  • 以现金形式发放的福利怎么入账
  • 委托收款有什么用
  • 违反劳动合同的责任
  • 虚开增值税专用发票罪判决书
  • 联营扣点怎么核算保本费用
  • 其他应付款借方余额表示什么
  • 公司个人所得税怎么申报
  • 归还银行贷款利息分录
  • 土地转让怎么缴纳增值税
  • 物业公司收的预存水费不够抵减怎么交税
  • 小规模纳税人的税率是多少
  • 可供出售金融资产发生减值会计处理
  • 电子商务平台怎么下载中标通知书
  • 销售退回如何做账
  • 收到电子银行承兑汇票怎么做账务处理
  • 教你从脸上看出风水
  • xlsx长数字
  • linux系统的文件与目录操作
  • 腾讯手游助手闪屏怎么办
  • hyper-v虚拟机中重置虚拟机是什么意思
  • 如何重装系统win7旗舰版
  • 如何才能显示效果更好
  • lsm.exe是什么程序
  • php 调用函数
  • 淘宝api接口
  • php pathinfo
  • 总承包合同如何约定农民工工资
  • 顺流交易合并抵消
  • 票折怎么操作
  • yolov1 实现
  • zabbix 执行命令
  • 怎样计算负债率
  • 工资只计提没有发放需要申报个税吗
  • 小规模纳税人工资薪金怎么申报
  • 资产负债表应交税费为负数
  • 包装物押金销项税额的计算
  • 个税清算所得税怎么计算
  • 会计专业技术资格初级是什么职称
  • 公司设计费会计分录
  • 冲以前年度成本分路
  • 收到科技局研发项目资金计入什么科目
  • 公司账户转账给个人要交税吗
  • 职工教育经费住宿费用可以抵扣吗
  • 工程结算的会计分录怎么做
  • sqlserver索引语句
  • sql server ceiling
  • sql server2008启动
  • u盘启动盘如何克隆另外u盘
  • macbookair如何隐藏文件
  • win7怎么免费升级win11
  • win8录音文件保存在哪
  • linux挂载yum
  • f_00000e是什么文件
  • win7旗舰版系统激活密钥
  • unity中mathf
  • webpack 主题切换
  • easyui validatebox验证
  • 如何让卖家给你乖乖退款
  • Unity3D中Javascript的基本使用与介绍详解
  • 如何解决android兼容问题
  • python crc
  • 轮廓模式
  • 动感相册模板
  • 江西2022年选调
  • 关于增值税纳税人的规定,下列说法正确的是
  • 临时税务登记有效期怎么填
  • 香港pcc价格
  • 地税局属于国家公务员吗
  • 广东省电子税务局app下载官网
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设