zoukankan      html  css  js  c++  java
  • Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Cul

    问题原文:

    Sudden Error: Could not load type System.ServiceModel.Activation.HttpModule - Urgent Help Please

    hi,

    I have a windows 7 machine with IIS 7. I was hosting WCF services on IIS normally and i had a couple of services running.
    Suddenly (i honestly did not do any configuration changes on my machine) all these services stopped working. When i try to browse the .svc file i get the following error:


    "Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"

    Just in case this information is helpful, all these services are running on the basicHttpBinding.

    Please help!

    问题解答.

    原文解答,意思基本上是.注册下.NET Framework 4 框架.方法上一篇文章有.看那个就行.下面是原文答案.

    Not sure if this applies to your problem but it is the same error (copied from http://download.microsoft.com/download/0/A/E/0AEB3BC1-506E-4954-8AB1-4FA2EE75985C/ReleaseNotes.docx):

    Could Not Load Type ‘System.ServiceModel.Activation.HttpModule’

    When attempting to run a service that receives messages over the HTTP transport, you may receive an error similar to the following:

    Server Error in '/WCFApplication' Application

    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. 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'.

    This error can occur when IIS is installed after installing .NET Framework 4, or if the 3.0 version of the WCF Http Activation module is installed after installing IIS and .NET Framework 4.

    To resolve this problem, you must use the ASP.NET IIS Registration Tool (Aspnet_regiis.exe,) to register the correct version of ASP.NET. This can be accomplished by using the –iru parameters when running aspnet_regiis.exe as follows:

    aspnet_regiis.exe -iru

    • Marked As Answer bymhalabiMVPFriday, December 04, 2009 10:22 PM
  • 相关阅读:
    char*,const char*和string 互转
    创建txt文件,并且写入内容
    monit 命令详解(monit)
    monit 配置详解(monitrc)
    nginx 配置详解(./configure)
    nginx 配置详解(nginx.conf)
    获取并检查系统负载CPU内存磁盘网络
    构建Zookeeper集群(zkcluster) ~一篇文章玩转zk集群^.^
    安装Zookeeper到Linux
    使用kubeadm搭建Kubernetes(K8S)集群
  • 原文地址:https://www.cnblogs.com/zenghui/p/1881448.html
Copyright © 2011-2022 走看看