Today I was configuring a clean Windows Server 2008 system. When I deployed a a WCF Service on IIS 7, I got the following message:
Server Error in Application “Default Web Site/...”
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension of the configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
The exception explains itself. IIS couldn’t find a correct handler for the *.svc extension for our WCF service.
Execute the following steps to make it work:
- Start the command window (cmd) as an Administrator.
- Navigate to:
C:\windows\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\ - Run the following command: ServiceModelReg –i