位置: 编程技术 - 正文

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

  • 财务刷卡手续费怎么处理
  • 公司雇佣退休人员怎样扣个税
  • 公司付给中间人居间费用如何纳税
  • 季末计提所得税可以根据本年利润计算吗?
  • 残疾人就业保障金征收使用管理办法
  • 退休人员额外收入的税收标准
  • 已认证发票红冲进项税分录
  • 保教费免征增值税政策
  • 食堂收入支出结构图
  • 工程发票是不是都要异地预缴
  • 维修变压器的维修方法
  • 中国银行结算包括哪些内容?怎么做会计分录?
  • 地税开发票为啥要交百分之二的企业所得税?
  • 增值税普票收款人
  • 土地配套费如何缴纳
  • 进项增值税发票怎么认证
  • 员工被单位罚款须要问单位要收据吗
  • 员工激励该怎么表达
  • 季度缴纳所得税如何做账
  • 保险公司买保险和银行买保险有什么区别
  • 缴纳个人所得税会计分录
  • 公司备用金属于夫妻财产吗
  • 购买监控设备费用谁出
  • 航天税控服务费
  • 赔偿金要交增值税吗
  • cpqeadm.exe是什么进程 可以关闭吗 cpqeadm进程查询
  • 硬盘最小的存储单位
  • 安徽4岁男孩户口已解决
  • 小型微利企业税收优惠2023
  • yii框架连接数据库
  • thinkphp 模块
  • 人工智能大模型上市公司
  • 现金折扣账务处理
  • 企业收到发票冲销怎么办
  • 计提年终奖的会计分录
  • mongodb应用实例
  • python中的比较
  • 销售物流
  • 股权投资都有哪些
  • 销售二手固定资产
  • 小规模超过30万怎么交增值税
  • 个体户怎么交税?
  • 技术人员工资计入什么科目
  • 其他应付什么意思
  • 本年利润的会计分录怎么写
  • 税务会计账务处理一般方法有哪些
  • 将本月应交未交增值税转入未交增值税
  • 固定资产为
  • 客人在酒店
  • 固定资产一次性扣除账务处理
  • 公司进项不够可以退税吗
  • 资金结存属于资产类吗
  • 企业商品销售收入确认条件
  • 开票必须填写开户银行吗
  • centos6.2安装
  • ssh连接虚拟机centos
  • 无法ping通虚拟机
  • bp程序是什么意思
  • win10预览版最新
  • centos7搜索
  • 开机提示windows即将过期
  • 邮件传输过程中都使用哪些协议
  • jquery 使用
  • nodejs做接口
  • 教你学python
  • 实现点击下箭头的方法
  • node.js+mysql
  • Activity的四种启动模式和onNewIntent()
  • Node.js中的construct构造函数
  • shell提示
  • linux一些常用操作命令 (不定时更新)
  • JavaScript+html5 canvas制作色彩斑斓的正方形效果
  • 安卓手机管家推荐
  • js随机生成一个整数
  • 中国纳税大户排行
  • 广东省国家税务总局班子成员
  • 单位没有缴纳个人医保
  • 企业填写莞e申报的通知
  • 现在哪个保险公司车险好
  • 苏州虎丘区税务局在哪里
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设