Home > Backend Development > PHP Tutorial > Could not load type System.ServiceModel.Activation.HttpModul_PHP教程

Could not load type System.ServiceModel.Activation.HttpModul_PHP教程

WBOY
Release: 2016-07-21 15:13:40
Original
1195 people have browsed it

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

After searching online, the problem occurred The reason is that after installing IIS, other versions of the framework were installed, causing the version in assemble to be inconsistent with the version used by the program. The solution is to use

aspnet_regiis.exe -iru to re-register iis.

The operation is as follows:

Use administrator rights to open command promt (must use run as administrator, otherwise the registration will not work)
Enter the framework folder (C:WindowsMicrosoft.NETFramework), Select the folder under the corresponding version (v4.0.30319) and use the command

to copy the code The code is as follows:

aspnet_regiis.exe -iru


The website can be opened after the registration is completed.

Win2008 prompts that the problem cannot be solved from the assembly "System.ServiceModel, Version=3.0.0.0"

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

Failed to load type "System.ServiceModel. Activation.HttpModule".

Cause:

This error occurs because .NET Framework 4 was installed first and then .NET Framework 3.5 WCF HTTP activation was enabled.

Solution:

Microsoft official answer to this problem: http://msdn.microsoft.com/zh-cn/library/aa751852.aspx

Just need to have The administrator user can run aspnet_regiis.exe -i -enable in cmd.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/326408.htmlTechArticleCould not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0. 0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.] I searched online...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template