日期:2012-09-16 16:51:00  来源:本站整理

win8 Could not load type System.ServiceModel.Activation.HttpModule 错误办理筹划[Windows安全]

赞助商链接



  本文“win8 Could not load type System.ServiceModel.Activation.HttpModule 错误办理筹划[Windows安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
点评:win8下WCF 提醒Could not load type System.ServiceModel.Activation.HttpModule 错误办理办法, 需求的朋友可以参考下 From:http://support.microsoft.com/kb/2015129

Symptoms

  Consider the following scenario. Youinstall the .NET Framework 4.0. Then, youinstall an earlier version of the .NET Framework, or you enable.NET 3.0 WCF HTTP Activation. In this scenario, you may receive the followingerror message when you when runapplications that are hosted on Internet Information Services (IIS):

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
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=b77a5c561934e089'.

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 .NETFramework4.0:

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 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=b77a5c561934e089" preCondition="managedHandler,runtimeVersionv2.0" />

  NoteYou can find the Applicationhost.config file in the following location:

%windir%\system32\inetsrv\config

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.NET\Framework\v4.0.30319

%windir%\Microsoft.NET\Framework64\v4.0.30319 (on a 64-bit computer)

注意

  以上筹划在win8系统中无效,因为在最后一步运行aspnet_regiis.exe /iru 号令时会失利,所以办理筹划是找到Applicationhost.config 文件(目录在%windir%\system32\inetsrv\config),然后把文件中的:

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" />

  改成:

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler,runtimeVersionv2.0" />

  我目前只找到这种筹划,假若有更好筹划欢送指出.

作者:Artwl
出处:http://artwl.cnblogs.com




  以上是“win8 Could not load type System.ServiceModel.Activation.HttpModule 错误办理筹划[Windows安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
  • Win8怎么激活的办法步骤详解
  • win8 Could not load type System.ServiceModel.Activation.HttpModule 错误办理筹划
  • 若何进入Win8安全情势 Win8进入安全情势图文教程
  • 若何干闭Win8系统更改计算机的消息告诉
  • Win8掌握面板怎么找 怎样进入win8的掌握面板界面
  • Win8利用商店收不到利用更新提醒的问题的办理办法
  • 若何设置Win8操作中央功效及时安全提醒
  • 没了开始菜单 Win8任务栏设置有什么改变
  • Win8若何安装利用程序 win8安装利用程序的办法
  • Win8兼容性若何 Windows8兼容性的实测介绍
  • win8自动登录若何设置 2种WIN8自动登陆设置办法教程
  • Win8 RP版利用商店里竟没有QQ是怎么回事呀?
  • 本文地址: 与您的QQ/BBS好友分享!
    • 好的评价 如果您觉得此文章好,就请您
        0%(0)
    • 差的评价 如果您觉得此文章差,就请您
        0%(0)

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    Copyright © 2020-2022 www.xiamiku.com. All Rights Reserved .