位置: 编程技术 - 正文

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

  • 应税项目和非应税项目起征点一样吗
  • 费用发票能不能直接挂应付账款里
  • 报验户与正常户的区别
  • 消防检测需要资质吗?
  • 土地增值税多交了怎么处理
  • 润滑油消费税征税环节
  • 加计扣除退回的所得税怎么做账
  • 代扣个税手续费返还怎么申请
  • 预收账款确认收入摘要怎么写
  • 员工个人抬头的医院发票可以入账吗
  • 杭州增值税发票查询
  • 职工教育经费税前扣除标准2023年
  • 财税[2010]121号中的宗地容积率指的是什么?
  • 工会经费的计税基础
  • 股权转让收益算利润吗
  • 股权转让未分配利润如何账务处理
  • 子公司注销后人员怎么安置
  • 税收滞纳金可以税前扣除吗
  • 免税农产品加工企业
  • 拍卖的物品
  • linux怎么安装使用conda
  • win10壁纸图片怎么删除
  • 单位购买图书会计分录
  • 公司清理固定资产怎么开票
  • Win10怎么清除系统
  • 刚成立的公司有什么风险
  • php session_start
  • 启动电脑显示器不亮怎么回事
  • window10黑白模式
  • win10 待机时间
  • 更改公司章程发函怎么写
  • 分期收款企业所得税确认时间
  • unity ik
  • win11系统自动更新
  • 建筑施工企业增值税税率调整时间
  • 适用会计准则或会计制度(填写代码)
  • 企业收到银行未收到怎么做账
  • 处置固定资产开票 税目
  • 减值准备对当期损益的影响
  • 微店企业店铺和个人店铺的区别
  • mysql 大量数据
  • 应交税费已交税金是什么意思
  • 实行自行申报的项目有哪些
  • 企业选择的短期调整
  • 净利润率的计算方法公式
  • 补缴税款需要交滞纳金吗
  • 工程履约保证金退还申请书
  • 员工借款未还财务有责任吗
  • 折旧年限的最新规定2021
  • 工资代扣工会会费协议
  • 上月有留抵税额本月怎么申报
  • 累计折旧减少记哪方
  • 各种会计凭证的填制
  • 各单位应当根据需要设立专职或者兼职
  • centos6.5设置网络
  • uefimbr安装win7
  • windows7文件夹选项在哪里
  • centos 查看用户命令
  • win7系统无法安装ie8
  • 桌面的word
  • win10外置光驱读不出光盘怎么办
  • 如何在win7系统中查看电脑基本信息
  • win7磁盘管理怎么显示隐藏分区
  • win8如何更改用户名字?
  • win7系统玩游戏怎么样
  • win7系统安装程序正在启动一直转圈圈
  • win10如何进行运行
  • cocos2d游戏引擎
  • ios shell脚本
  • python3安装pygame
  • shift妙用之解决shell编程中的入参问题
  • 仿百度首页
  • linux基本代码
  • android设计模式面试题
  • 河南林州在哪三省交界处
  • 个人所得税缴纳怎么申报流程
  • 进出口备案登记表是哪个部门发的
  • 运输类税点
  • 如何做好税务局长
  • 开增值税发票没有销售合同也要交印花税吗
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设