在Windows 中的IIS服务器中部署WebService服务时,通过浏览器访问报出如下错误

未能从程序集“System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加载类型“System.ServiceModel.Activation.HttpModule”。


原因

这是因为先安装了 .NET Framework 4,随后启用了 .NET Framework 3.5 WCF HTTP **,则会发生此错误。

解决办法

微软官方对该问题也作了解答:http://msdn.microsoft.com/zh-cn/library/aa751852.aspx

只需要已管理员用户在cmd中运行aspnet_regiis.exe -i -enable即可。

未能从程序集“System.ServiceModel, Version=3.0.0.0..."中加载类型“System.ServiceModel.Activation.HttpModule”

相关文章:

  • 2022-12-23
  • 2021-11-08
  • 2021-06-12
  • 2022-01-14
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案