Friday, October 1, 2010

WCF on IIS7 on Vista - Adding .svc Handler

WCF on IIS7 on Vista - Adding .svc Handler

WCF on IIS7 on Vista - Adding .svc HandlerI’ve just formatted and reinstalled my computer yesterday. When I started to build a WCF Service on IIS 7 on my Vista machine, 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.

This is what I did to have it work:

  1. Start the command window (cmd) as an Administrator.
  2. Navigate to:
    C:\windows\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\

    In case you are running on a 64Bit machine, than navigate to:
  3. C:\windows\Microsoft.Net\Framework64\v3.0\Windows Communication Foundation\

  4. Run the following command: ServiceModelReg –i

After some messages on the console window…

WCF on IIS7 on Vista - Adding .svc Handler

your service should now work.

Enjoy!