First of all, I want to say I hate Vista.
Ok, so this was my first experience using IIS 7.0 on Windows Vista for some local development and ohmigosh; what a pain. I am trying to test some WCF services and I needed to be able to debug. When attempting to view one of my services just to ensure it could be found, I received the following error:
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.
I mean it makes sense right; why on Earth would you expect IIS 7.0 to be able to understand a svc file!?!
Luckily I found a solution to this problem from Rahul’s Blog on MSDN on how to fix the problem. The basic steps are:
- Open a new command prompt
- Navigate to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
- Execute servicemodelreg –i
After that, try navigating to your service again and it should work. Thanks again Rahul for this helpful tip!