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

本文详细介绍了当在安装.NETFramework4之后安装IIS时,可能会遇到的错误 Couldnotloadtype'System.ServiceModel.Activation.HttpModule'fromassembly'System.ServiceModel,Version=3.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089' 的原因,并提供了使用ASP.NETIIS注册工具(Aspnet_regiis.exe)来解决此问题的方法。

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

出现这个错误的原因是:先安装了.Net Framework 4 后安装IIS

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的路径如下所示:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe

aspnet_regiis.exe -iru

转载于:https://www.cnblogs.com/EddyPeng/archive/2013/05/07/3064261.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值