WCF service hosting in IIS 7.5 - The page you are requesting cannot be served because of the extension configuration

Viewed 19083

Whenever I publish WCF service to IIS. It is almost I have become habituated to get this error:

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.

The practice I have maintained: is to change application pool for the website to classic mode. But this time I am out of luck.

  • Q.1. Can you please help?
  • Q.2. As the error suggests: Should I configure .svc MIME map some where in IIS?
  • Q.3. For WCF to operate in integrated pipeline mode, Is there any specific configuration required?
2 Answers

For me I simply needed to add the specific mimetype to the IIS website I was running

Per Adding Static Content MIME Mappings <mimeMap>:

  1. Open Internet Information Services (IIS) Manager
  2. In the Connections pane, go to the site, application, or directory for which you want to add a MIME type.
  3. In the Home pane, double-click MIME Types.
    IIS > Mime Types
  4. In the MIME Types pane, click Add... in the Actions pane.
    Add MIME Type
  5. In the Add MIME Type dialog box, add the file name extension and MIME type, and then click OK.
    Add MIME Type
Related