位置: 编程技术 - 正文

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怎么关闭电脑)

  • 账面价值与计税基础一般会产生差异的是
  • 印花税计税依据含不含增值税
  • 豆制品属于农产品初加工吗
  • 出口退税转内销会计分录
  • 成本收入不配比的风险有哪些
  • 实发工资知道如何发放吗
  • 税后是含税还是不含税的意思
  • 个体工商户五级税率
  • 财税公告2019年第74号
  • 小微企业免征税怎么做会计分录
  • 金税三期账号是自己申请吗
  • 销售折扣开票怎么开
  • 实收资本叫别人代缴可以不
  • 互联网企业招商方案
  • 装饰设计费计入什么科目
  • 印花税零申报怎么填样本
  • 2020退税时间超过了怎么办
  • 2020年小规模生活服务业优惠政策
  • 关联业务报告表需要填吗
  • 旧房转让如何缴纳土地增值税
  • 递延收益现金流量附表项目
  • 未确认收货可以评价吗
  • 房地产开发企业的土地使用权计入哪里
  • 劳务公司代发劳务费合法吗
  • 汇算清缴的租赁费怎么算
  • win7系统中英文切换快捷键
  • win7不能进系统怎么办
  • 关闭客户端快捷键
  • 福利费用会计分录
  • 无形资产原值增加,净值减少的原因
  • 简易征收的分录
  • 代垫运费的会计处理
  • 不良资产核销的影响
  • php yield 异步
  • 退休费用会计分录
  • PHP:imagecolorexactalpha()的用法_GD库图像处理函数
  • web攻防之业务安全实战指南
  • php 通信
  • 小说《从零开始》
  • 命令行怎么管理员运行
  • 存续分立会计处理原则
  • 工业企业应收应付会计怎样
  • 行政单位预算外收入有哪些
  • 织梦官方网站
  • 织梦一直显示上一页和下一页
  • 怎么确定应付账款的完整性
  • 增值税专用发票几个点
  • 弥补以前年度亏损怎么算
  • 旅游业营改增怎么报税
  • 小规模进项是专票销项是普票可以抵扣吗
  • 高铁票可以抵扣的进项
  • 研发人员差旅费可以资本化吗
  • 增值税专用发票的税率是多少啊
  • mysql数据库中储存的是
  • hosts文件不起作用
  • win10系统预览版
  • centos查看wwn
  • SmoothView.exe - SmoothView是什么进程
  • 在windowsxp中设置控制计算机硬件设备
  • win10安装不了ie
  • centos中netspeeder网络加速/优化器的安装方法
  • Linux上PPTP VPN的一键安装以及设置开机启动的方法
  • win10系统创建一个快捷bat
  • win7开机自动弹出注册表编辑器怎么办
  • win7恶意程序怎么清除
  • Linux通过netstat命令查看80端口连接数的方法
  • nodejs实战教程
  • nodejs基本原理
  • node 调用c
  • Unity3D之Transform参数
  • jquery控制样式
  • JavaScript基础教程
  • 电子税务局内蒙古自治区
  • 河南省低保信息查询
  • 融资租赁利息是哪个科目
  • 税务行政执法风险防范与控制
  • 中国的消费税率是多少
  • 电子保险怎么查询车船税
  • 广东省上交国家财政
  • 草地耕地占用税征收标准
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设