无法从程序集“System.ServiceModel"加载类型“System.ServiceModel.Activation.HttpModule" [英] Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel
问题描述
我在 IIS 中运行我的 Web 项目.
I'm running my Web Project in IIS.
是一款4.0框架的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"程序集System.ServiceModel,版本=3.0.0.0,文化=中性,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:WINDOWSMicrosoft.NETFrameworkv4.0.30319aspnet_regiis.exe -iru
当 .NET Framework 的多个版本在一台计算机上并行执行时,映射到 ASP.NET 应用程序的 ASP.NET ISAPI 版本决定了公共语言运行时 (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.
这篇关于无法从程序集“System.ServiceModel"加载类型“System.ServiceModel.Activation.HttpModule"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!