Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the Could not load type System.ServiceModel.Activation.HttpModule problem

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article focuses on "how to solve the Could not load type System.ServiceModel.Activation.HttpModule problem". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the Could not load type System.ServiceModel.Activation.HttpModule problem.

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

After searching the Internet, the cause of the problem is that other versions of framework are installed after installing IIS, which leads to the inconsistency between the version in assemble and the version used by the program. The solution is to use the

Aspnet_regiis.exe-iru re-registers iis.

Do the following:

Turn on command promt with administrator permission (be sure to use run as administrator, otherwise you can't register)

Go to the folder of framework (C:WindowsMicrosoft.NETFramework), select the folder under the corresponding version (v4.0.30319), and use the command

The copy code is as follows:

Aspnet_regiis.exe-iru

After the registration is completed, the website can be opened.

Failed to resolve the problem from the assembly "System.ServiceModel, Version=3.0.0.0" under win2008

When deploying the WCF service program in the IIS server in Windows Server 2008, the following error is reported through browser access:

Failed to load type 'System.ServiceModel.Activation.HttpModule 'from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Reason:

This error occurs when .NET Framework 4 is installed and then .NET Framework 3.5 WCF HTTP activation is enabled.

Solution:

Microsoft officially gave an answer to the question: http://msdn.microsoft.com/zh-cn/library/aa751852.aspx

Only the managed user is required to run aspnet_regiis.exe-I-enable in cmd.

At this point, I believe you have a deeper understanding of "how to solve the Could not load type System.ServiceModel.Activation.HttpModule problem". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report