位置: 编程技术 - 正文

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

  • 保险公司支付的赔款计入什么科目
  • 所得税禁止扣除项目
  • 从厂家拿货怎么谈价格
  • 收到原材料发票的会计分录
  • 收据上面盖公章还是财务章
  • 金税盘服务费怎么抵扣税
  • 固定资产处置损益科目编码
  • 纳税总额是否包含增值税进项
  • 转让房产收取的增值税
  • 小规模纳税人房租发票税率是多少
  • 代开专票作废退税怎么做账?
  • 企业购买房产可以抵扣增值税吗
  • 购买商标属于什么费用
  • 对外报价时应考虑哪些因素
  • 含有商品编码的增值税普通发票如何开具?
  • 免征增值税和附加税区别
  • 输入开票码开具电子发票
  • 应付账款无法支付所得税处理
  • 公积金是否计入个人所得税
  • 政府高薪补贴
  • 营改增服务业税负下降
  • 建筑工程总包分包的内容
  • 收到汇票怎么承兑
  • ami bios怎么设置u盘启动
  • 个体工商户需要办公户吗
  • 收不到的物业费是否增值税确认收入
  • 什么是票据权利?票据权利的内容有哪些
  • 如何设置系统自带的输入法
  • 跨年退税怎么处理
  • macbook怎么保存
  • deldir.exe是什么
  • 查补税款有未缴纳怎么办
  • 原材料和固定资产入账价值的计算
  • 最高跑分纪录的显卡是什么
  • 实际成本法核算会计分录
  • 金银首饰零售业税负率是多少
  • 一个金税盘可以用一个用户名和密码开票吗
  • 小微企业人员认定标准
  • vue3官方教程
  • 提供劳务收入是指
  • 超出python用什么
  • 织梦怎么改首页背景
  • 当月发生的费用
  • 一般纳税人购销合同印花税减免政策
  • 免税所得包括哪些
  • 工会会计固定基金
  • 外购商品职工福利进项税额转出如何记账?
  • 社保费单位减免
  • 什么混合销售
  • 不能计入固定资产原值的有
  • 期初应收账款对应什么科目试算平衡
  • 抵账的房子怎么办理房产证
  • 增值税普通发票有什么用
  • 非居民企业境内所得
  • 软件公司se
  • 非限定性净资产是什么意思
  • 发票抵扣联要放在凭证里面吗
  • 红冲发票需要收回原发票吗 税屋
  • 企业和职工之间的财务关系属于
  • sql平均数函数
  • Windows下System Volume Information文件夹是干嘛用的?
  • 系统组策略打不开
  • windows优化软件哪个好
  • xp调出输入法
  • centos7视频教程
  • linux如何打包tar.gz
  • linux如何查看防火墙配置
  • win10任务栏不显示输入法
  • WIN10任务栏时间不动
  • 第一个闹钟
  • [android] listView解析
  • linux反弹shell方法
  • 安卓编程视频教程
  • nodejs function
  • jquery详解
  • javascript面向对象精要pdf下载
  • 如何在电子税务局看本月应申报的税
  • 金税三期个税下载官网手机版
  • 税务局纳税服务中心
  • 税务稽查检查笔录范文
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设