Tip for troubleshooting WCF service

When attempting to load an .svc file in the browser if you get
           HTTP Error 404.17 - Not Found

          The requested content appears to be script and will not be served by the static
           file handler.

you can first check your .NET framework runtime and ensure it matches with the runtime specified in IIS or else run the aspnet_regiis.exe -i.

If nothing else works and you still get the above error, then it could be that WCF mapping are not registered with IIS.

So to solve this,

    Navigate to "C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation"
    at the Visual Studio command prompt

    Execute "servicemodelreg -i" to install the mappings manually
Next Recommended Reading WCF And WCF Service Components