位置: 编程技术 - 正文

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

  • 超标准能按小规模纳税人标准纳税吗?
  • 一般计税方法适用于500万
  • 私车公用是否合法
  • 工程款增值税专用发票如何开具
  • 资产处置收益计入利润总额吗
  • 有进项发票还用交税
  • 培训咨询企业的发展前景
  • 应收票据贴现的含义
  • 润滑油消费税征税环节
  • 企业垫付土地补偿款
  • 所得税预缴申报表利润
  • 非银行支付机构条例(征求意见稿)
  • 预收款项什么时候确认收入
  • 小规模纳税人自己可以开专票吗
  • 现金短缺或溢余的账务处理业务题
  • 印花税未计提可以下月补提吗
  • 公司公章丢失登报后又找到了
  • 支付工资资产减少了吗
  • 季度所得税可以不预缴吗
  • 移动电子发票显示无法开具怎么获取发票
  • 收到几分钱的认证费怎么做账
  • 商标公司转让给个人提供什么?
  • 苹果13promax哪个颜色最贵
  • 发票丢失如何处理
  • centos停止发布
  • navione.exe是什么意思
  • 什么级别的cpu需要水冷
  • 公司转让自建厂房怎么办
  • 银行提取现金会查征信吗
  • 餐饮发票可以计入福利费吗
  • php接收post数据并查询数据库
  • vue开发环境和生产环境域名配置
  • vue+echarts
  • torchaudio教程
  • 三维点云识别
  • 服务型制造收入
  • 油票上没有公司名称可以报么
  • 财务没有及时缴费怎么办
  • 建筑工程施工围挡安装
  • 技术服务费可以计入成本吗
  • 哪些增值税可以免税
  • 地补缴费额是什么
  • 增值税在实际计算时采取什么方法
  • 在建工程转出到什么科目
  • 为什么白条不能打白条
  • 公司配股对股价的影响
  • 税盘减免税款怎么做账
  • 短期借款计提利息计入什么科目
  • 废品损失明细账应选择三栏式
  • 建账前应该考虑哪些问题
  • sql server中删除触发器用
  • sqlserver如何查看操作日志
  • innodb数据和索引文件
  • win10 系统内存
  • 微软 win7
  • rundll32.exe是什么程序
  • visio.exe是什么进程
  • service.exe是什么
  • windows中的服务
  • rftray.exe - rftray是什么进程 有什么用
  • 2021年win10累积更新
  • centos设置ftp
  • awk中使用sed
  • windows8任务管理器在哪
  • win10系统onenote不能用
  • 协同编程工具
  • 游戏新手引导架构
  • node 内存泄漏
  • qt for 安卓
  • shell脚本转换为exe
  • 批处理命令是什么语言
  • OnApplicationFocus
  • 文章标题作用答题模板
  • unity3d打包apk
  • jquery表格隔行变色代码
  • js继承的方式
  • thinkphp withjoin
  • 四川农村信用社电话
  • 通州税务短信
  • 日本各界
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设