Friday, July 3, 2015

The page you are requesting cannot be served because of the extension configuration

Scenario:

I was getting the below error message when trying to run my application having .svc file. 

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.

Screenshot of the error page: 

alt text

Solution 1:

Please follow the below two steps on IIS 8.0.
Step 1. Add new MIME type 
  1. Extension: .svc, MIME type: application/octet-stream
Step 2: Add new HttpHandler

  1. Request path: *.svc, Type: System.ServiceModel.Activation.HttpHandler, Name: svc-Integrated
Step 3: Restart IIS

Solution 2:

In Windows 7 and earlier, run aspnet_regiis -i 
Note: but this command seems to have been deprecated in Windows 8 yielding response This option is not supported on this version of the operating system. (...).



No comments:

VS Code # Warning - npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead

Error : VS Code - NPM Warning - npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead Solution:  Foll...