无法从程序集'System.ServiceModel加载类型'System.ServiceModel.Activation.HttpModule' [英] Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel

查看:569
本文介绍了无法从程序集'System.ServiceModel加载类型'System.ServiceModel.Activation.HttpModule'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS中运行我的Web项目。

I'm running my Web Project in IIS.

这是一个4.0 Framework APP。

It is a 4.0 Framework APP.

我有一个Service.svc,当我运行我的应用程序时出现此错误。

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


无法加载类型'System.ServiceModel.Activation .HttpModule'来自
assembly'System.ServiceModel,Version = 3.0.0.0,Culture = neutral,
PublicKeyToken = b77a5c561934e089'

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

我试过这个 - > aspnet_regiis.exe -iru,我在很多论坛中发现它并没有解决我的问题。

I tried this --> aspnet_regiis.exe -iru which I found in a lot of forums and it didn't solve my problem.

有人知道另一种方法吗?

Does anyone know another method ?

推荐答案

尝试

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

当多个版本的.NET Framework在一台计算机上并行执行时,映射到ASP.NET应用程序的ASP.NET ISAPI版本确定了哪个版本的c ommon语言运行时(CLR)用于应用程序。

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.

上面的命令将安装与Aspnet_regiis.exe关联的ASP.NET版本,并且只在IIS中注册ASP.NET。

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 - 无法加载

这篇关于无法从程序集'System.ServiceModel加载类型'System.ServiceModel.Activation.HttpModule'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆