配置 Win7 和 IIS7 以支持WCF

Win7 和 IIS7 默认不支持WCF, 要使其支持WCF,需要执行如下操作:

1. 以管理员(Administrator)方式运行C:\Windows\System32\cmd.exe

2. 执行命令:

  "%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -y

   (其中windir需要替换为你的windows安装目录)

【参考文献】

1. Host a WCF Service in IIS 7 & Windows 2008 - The right way

转至:http://www.cnblogs.com/pchen/archive/2010/02/26/1674259.html

原文地址:https://www.cnblogs.com/sonicit/p/2140808.html