在试用.net 4.0开发SL应用时,之前将WCF服务发布到IIS7上时曾发生客户端无法访问,提示"svc integrated”为"bad module”的错误。

这里首先要确保IIS7中网站的应用程序池配置正确,试用4.0版本的Integrated模式,然后参考3.0时出现相似问题的原因,以管理员模式打开命令提示符,定位到“c:\Windows\Microsoft.NET\Framework\v4.0.30128\”(x64系统应该是"c:\Windows\Microsoft.NET\Framework64\v4.0.30128\"吧)。然后运行ServiceModelReg -ia,安装所有模块。应该就可以了。

参考:http://www.kewney.com/microsoft-net/hosting-a-windows-communication-foundation-service-in-iis7-on-windows-vista/

相关文章:

  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2021-06-25
  • 2021-08-08
  • 2022-02-01
猜你喜欢
  • 2021-05-02
  • 2021-09-28
  • 2021-05-22
  • 2021-10-22
  • 2021-10-20
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案