Configuring WCF on IIS 7.0 on Windows Vista

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:

  1. Open a new command prompt
  2. Navigate to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
  3. Execute servicemodelreg –i

After that, try navigating to your service again and it should work. Thanks again Rahul for this helpful tip!

-Flea#

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: