When I first time host a WCF web site on winodws 7 under IIS7, I got this error:

HTTP Error 404.17 – Not Found

 

After tried several hours, I found just run following commands as administrator, then may get the wcf site worked.

 

"%WINDIR%\Microsoft.Net\Framework\v4.0.30319\aspnet_regiis" –i –enable
"%WINDIR%\Microsoft.Net\Framework\v4.0.30319\ServiceModelReg.exe" -r


Sure, you need to make sure .net framework 4.0 installed. And change the .net framework version of my wcf website's Application Pool in ISS Manager 7 from "ASP.NET v2.0" to "ASP.NET v4.0".


posted on 2012-08-02 15:17  alanzhou  阅读(197)  评论(0编辑  收藏  举报