Development related thoughts, facts, how-tos and workarounds
Saturday, May 30, 2009
Wcf svc mime type on IIS.
I have started exploring WCF. The first issue I have got into was that there is no .svc MIME map on IIS7 on Vista. When I tried to locate the service I always had the same exception: "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."
In order to resolve this you need to run "\%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe -i". It will create required .svc mapping.