Oops! That was a surprise when I hosted my first WCF sample in IIS7, on my Windows 7 machine. I’s blown out with an error
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler
The error occurred since the Service Model is not registered in my machine, which handles the WCF service request. However, you can install it manually from the command line:

.NET 3.0
Location: C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
Command Line: ServiceModelReg.exe –i
Happy Web Servicing!
Hope this helped. Thanks