位置: 编程技术 - 正文

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

  • 待办事项没有印章怎么办
  • 建筑企业差额征税如何开票
  • 研发费用加计扣除是什么意思啊
  • 内账采购含税怎么转不含税
  • 新办企业发票核定及申领,选否行吗
  • 境内公司没有收购的股票
  • 增值税电子发票能抵税吗
  • 培训咨询企业的发展前景
  • 城市维护建设税属于什么科目
  • 新税法下广告费和业务宣传费的扣除是怎样?
  • 发票丢失怎样写说明
  • 企业核税需要什么资料
  • 广告制作费属于现代服务吗
  • 税务稽查的四个环节
  • 公司给另外一家公司投资
  • 注册会计师考点分析
  • 印花税分配比例
  • 如何增加发票数量和额度
  • 未分配利润清算如何处理
  • 销售商品会计分录怎么写
  • 桌面或文件夹内无图标
  • 读会计没有考到证 能出来干什么
  • 有关预提费用如何冲销
  • 无形资产怎样计算折旧
  • 发票上没有校验码
  • 专业版 win10
  • windows server 2008和r2
  • 增值税税控系统折旧
  • 石榴石的功效与作用价值
  • 固定资产改造后如何计提折旧
  • 残疾人就业保障金
  • 错账是什么
  • 红宝石地址
  • 将城镇生活垃圾直接用作肥料
  • 生产企业成本会计难吗?
  • 投标须知所包括的内容有哪些
  • openpose的输出
  • 福利费专用发票如何账务处理
  • 财政贴息会计处理怎么理解
  • 信用卡收款怎么查询
  • 技术服务费计入成本会计分录
  • 工程运维预缴增值税税率
  • 织梦如何添加浮动广告
  • mysql百万级数据分页查询优化
  • logstash gsub
  • python 熵值法
  • 汇算清缴的费用标准 中汇
  • 资产负债表中没有专项储备怎么填写
  • mysql乱码问题怎么解决
  • 无形资产的成本包括增值税吗
  • 以前年度税费减免税
  • 闽侯县安置房交易缴纳土地出让金
  • 暂估成本的账务处理分录
  • 发票金额比实际付款多怎么做账
  • 库存现金存入银行是什么凭证
  • 应付暂估会计处理
  • 同城票据交换差额户金额从哪得来的
  • 装修费用一次性税前扣除
  • sqlserver的case 用法
  • innodb_flush_method取值方法(实例讲解)
  • 32位的win7和64位的win7要选择哪个呢?它们有什么区别?
  • vmwarevmx进程是干嘛的
  • Linux服务器管理的开机界面
  • w10系统分辨率
  • linux去掉指定字符
  • linux收发邮件
  • windows适配器未连接
  • windows 8怎么样
  • css百分比进度条
  • cocos2d-x教程
  • 3d网络游戏开发方法
  • js 图片压缩库
  • android:Background线程池和UiThread线程池
  • python语言文件
  • 使用二氧化碳灭火器时人应该站在什么位置
  • html做一个新闻app首页
  • 小规模纳税人忘记作废发票导致超过免税范围
  • 增值税检查调整的账务处理
  • 广州国税地税上班时间
  • 中国税收居民申报
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设