位置: 编程技术 - 正文

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

  • 申报个税时怎么获取个税专项附加扣除
  • 一般纳税人材料销售税率
  • 跨年取得的发票怎么入账
  • 缴纳印花税的会计凭证
  • 注册公司认缴出资方式怎么选
  • 未结转本年利润影响报表吗
  • 企业是否可以查员工亲属关系
  • 销售额包括哪些收入
  • 企业辅助生产车间
  • 企业合并相关舞弊风险有哪些
  • 一般纳税人公司卖车怎么做账
  • 交易性金融资产的交易费用计入哪里
  • 其他应收款在什么方
  • 行政单位租个人房子能用收据下账吗
  • 小规模可以收专票当费用票吗
  • 小规模季度超过30万,普票咋交税
  • 购入二手设备,无发票怎么记账
  • 股票回购会计处理
  • 应收账款出售给银行
  • 存货抵偿债务账务处理
  • 651错误是怎么回事
  • Win10 Build 19043(21H1最新版)即将推送 更新内容汇总
  • 现金流量表与资产负债表不符
  • 施工企业会计制度有哪些
  • 跨月的成本费用如何,调整
  • 收到厂家返利怎么做账务处理
  • 固定资产毁损应该填制什么凭证
  • 混合销售会计处理
  • 在西伯利亚森林中是真实故事吗
  • service的启动方式及生命周期
  • 没签订采购合同怎么办
  • 公立医院增值税抵扣
  • Yii2 rbac权限控制之菜单menu实例教程
  • 小规模未达起征点免税分录
  • 10分钟搞定3种网红小吃
  • php读取mysql
  • php similar_text()函数的定义和用法
  • php上传照片
  • thinkphp ide
  • 换货和退货有什么区别
  • 单项履约成本是什么意思
  • 上个月成本做多了怎么冲账
  • 在access中,数据库对象导出到另一数据库中
  • mongodb 入门
  • github+hexo搭建博客
  • 公司购入车辆的增值税怎么算
  • 企业所得税实训内容及过程
  • 营改增试点行业顺序
  • 应付账款怎么处理
  • 应收票据的分录怎么做
  • 发票报销抵扣税点是给谁
  • 支付宝企业账户在哪里查看
  • 包工包料成本比例
  • 边际成本是什么意思大白话
  • sql两个数据怎么合并到一起
  • mysql 5.7.18 winx64密码修改
  • android x86 4.0 iso
  • ubuntu系统中怎么安装mathematica13.1.0
  • Win10中文输入法不能用
  • ubuntu zed
  • linux大于符号
  • linux中怎么在文件中添加内容
  • ubuntu安装指南
  • unity connected games
  • unity项目资源
  • opengl光照设置
  • 深入了解工作优势怎么回答
  • 简述JavaScript中全局变量与局部变量的作用域
  • jquery可编辑表格插件
  • jquery jwt
  • js tab选项卡
  • u3d官方
  • python语言的特殊符号
  • 税务局的人工资多少
  • 江苏省电子税务局社保缴费查询
  • 出租车发票密码区被撕掉了能报销吗?
  • 国地税改革意义
  • 东莞房地产协会副会长
  • 交强险和车船税网上购买
  • 内蒙古总工会工会经费
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设