Hosting wcf unders IIS 7.0
The page you are requesting cannot be served because of the extension configuration
I was setting up a project on my local box that was hosting a WCF service. These web services have a .svc file extension and apparently IIS 7 out of the box doesn’t know what to do with them.
The error you get will look something like this:
HTTP Error 404.3 – Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. Detailed Error InformationModule StaticFileModule
And there will be more info listed below that shows some items related to your local machine. So after much trial and error and a lot of Google slapping, I finally found the answer to my problem.
1. Open Visual Studio 2008 Command prompt.
2. Navigate to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
3. Run this command: servicemodelreg –i
Apparently when IIS 7 is installed they don’t turn everything on for you and so you are required to do it yourself.
Hopefully, this has saved some of you some time and frustration.
The original post is http://tonytriguero.com/iis-7-and-webservices-svc-file-extension/,I will post here for my own references.
Some other references: