摘要: 本文主要介绍如何配置Win7 和 IIS7支持WCF。
关键词: WCF, Win7, IIS7
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
转载于:https://www.cnblogs.com/pchen/archive/2010/02/26/1674259.html
相关资源:IIS7 配置大全(ASP.NET 2.0, WCF, ASP.NET MVC,php)