WCF and IIS7: 404 - File or Directory not found

Ever been puzzled by the 404 - File or Directory not found error message when deploying a WCF service to a new .NET/IIS7 installation?

The error seems to indicate that the .svc file could not be located even though it’s present in the website.

This usually is a side effect of the server not having WCF Activation feature turned on. As soon as you turn it on in the Add features wizard your WCF service will be served correctly by IIS.

This article is part of the GWB Archives. Original Author: Asif Maniar

New on Geeks with Blogs