Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel

前端 未结 14 575
挽巷
挽巷 2020-12-04 07:37

I\'m running my Web Project in IIS.

It is a 4.0 Framework APP.

I have a Service.svc and I get this error when I run my Application.

\"

相关标签:
14条回答
  • 2020-12-04 08:28

    Hello Thanks for the question; To resolve: "Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"

    In Windows Features check all for .NET 4 Advanced Services & .NET 3.5

    enter image description here

    Just like Nicolas Gago I tried aspnet_regiis.exe -iru but it didn't work. After the features were on then it yellow screen error was gone. Thanks;

    0 讨论(0)
  • 2020-12-04 08:29

    We are using a web service along side a web site and when we publish the web site it returns same this error. We found out that by going into IIS and removing the ServiceModel from Modules and the svc-Integrated from the Handler Mappings the error went away.

    0 讨论(0)
  • 2020-12-04 08:30

    Try with

    c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -iru
    

    When multiple versions of the .NET Framework are executing side-by-side on a single computer, the ASP.NET ISAPI version mapped to an ASP.NET application determines which version of the common language runtime (CLR) is used for the application.

    Above command will Installs the version of ASP.NET that is associated with Aspnet_regiis.exe and only registers ASP.NET in IIS.

    https://support.microsoft.com/en-us/help/2015129/error-message-after-you-install-the--net-framework-4-0-could-not-load

    0 讨论(0)
  • 2020-12-04 08:33

    You can install these features on windows server 2012 with powershell using the following commands:

    Install-WindowsFeature -Name  NET-Framework-Features -IncludeAllSubFeature
    Install-WindowsFeature -Name  NET-WCF-HTTP-Activation45 -IncludeAllSubFeature
    

    You can get a list of features with the following command:

    Get-WindowsFeature | Format-Table
    
    0 讨论(0)
  • 2020-12-04 08:33

    I got this error after I accidentally published one website into the directory of another website. The two websites had different versions of .net. What fixed it for me was changing the application pool. To do that, in the IIS manager:

    click the website => Advanced Settings... (on the right) => click to the right of Application Pool => a button with "..." should appear => select ".NET v4.5 Classic"

    If that application pool doesn't work, try some of the others.

    0 讨论(0)
  • 2020-12-04 08:33

    You might changed the IIS features settings.The easy steps to resolve by open command prompt with run as administrator(For Windows Server 2008) and run the command C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -iru this will set up ASP.Net 4.0 ,Then Reset the IIS by the command iisreset

    References: https://support.plesk.com/hc/en-us/articles/213392249-ASP-website-shows-error-Could-not-load-type-System-ServiceModel-Activation-HttpModule-from-assembly

    0 讨论(0)
提交回复
热议问题