位置: 编程技术 - 正文

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

  • 服务费收入是什么
  • 流转税包括哪些税种2022
  • 留抵退税手续
  • 无偿调入的固定资产
  • 账龄划分模板
  • 咨询费计入什么明细科目
  • 长期挂账的应付账款怎么处理
  • 将自产产品用于投资
  • 其他业务收入的核算内容
  • 其他应付为负数怎么处理
  • 只占股不出资
  • 企业营改增后的会计处理有何变化
  • 增值税专用发票和普通发票的区别
  • 小微企业季度所得税怎么计算
  • 委托贷款利息收入现金流
  • 税务局拍卖资产
  • 自然灾害造成的存货净损失计入什么科目
  • 小微企业季度所得税怎么计算
  • 纳税退税申请表的基本情况如何写
  • 建筑安装施工过程
  • 对公回单必须在银行开吗
  • 已经认证的发票怎么冲红
  • 虚拟股份分红
  • 在windows中,经常有一些菜单选项呈暗灰色
  • 施工企业会计制度有哪些
  • acs_log是什么文件
  • 铡什么意思
  • php ado
  • 其他应付款结转什么科目
  • 软件入无形资产还是长期待摊费用了
  • 增值税专用发票的税率是多少啊
  • 固定资产抵债账务怎么处理
  • 埃菲尔铁塔翻绳的方法
  • segment anything model github
  • 常用的成本计算方法有哪些
  • 操作系统页表项怎么算
  • echarts图大小设置
  • 微信小程序用电脑怎么打开
  • 购进商品的运费怎么算
  • 公司租赁个人车辆账务处理
  • 开发票纸巾属于什么编码
  • 搅拌机属于什么费用
  • 水利基金补申报怎么操作
  • php5.2漏洞
  • sqlserver怎么把数据库导出来
  • centos安装MySQL数据库
  • 直接人工费用属于产品成本吗
  • 购进材料款项未付用什么凭证
  • 增值税专用设备是什么
  • 开会旅游的费用是多少
  • 接受捐赠财产净价值属于所有者权益吗
  • 应收账款和应付账款的管理
  • 公交充值卡发票能报销吗
  • 会计总账怎么登账
  • bios关闭pxe
  • mac和iphone互动
  • win102h20
  • .sfx.exe是什么文件
  • win7旗舰版系统怎么样
  • linux的批处理
  • win7右键没有
  • 批处理 >nul
  • cmd常用命令详解
  • pythonweb框架有哪些
  • javascript总结笔记
  • js querySelector() 使用方法
  • window.open()参数传递及获取
  • js动态执行代码
  • 深入理解新发展理念,推进供给侧结构性改革
  • JavaScript split()使用方法与示例
  • unity?
  • bootstrap学习
  • 重新税务登记程序有哪些
  • 施工费税费
  • 福建省地方税务局杨静
  • 安徽省合肥市地震多少级
  • 小微企业印花税的税率是多少
  • 手机微信怎么预约
  • 国税局发票打印软件下载
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设