Tuesday, December 8, 2009

WCF on IIS7 on Vista or Windows 7 - Adding .svc Handler

WCF on IIS7 on Vista or Windows 7 - Adding .svc Handler

I’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:

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

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


Run the following command: ServiceModelReg –i

After some messages on the console window…




your service should now work.

No comments:

Post a Comment