Home > WCF > Hosting wcf unders IIS 7.0

Hosting wcf unders IIS 7.0

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

I was setting up a project on my local box that was hosting a WCF service. These web services have a .svc file extension and apparently IIS 7 out of the box doesn’t know what to do with them.

The error you get will look something like this:

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. Detailed Error InformationModule StaticFileModule

And there will be more info listed below that shows some items related to your local machine. So after much trial and error and a lot of Google slapping, I finally found the answer to my problem.

1. Open Visual Studio 2008 Command prompt.
2. Navigate to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
3. Run this command: servicemodelreg –i

Apparently when IIS 7 is installed they don’t turn everything on for you and so you are required to do it yourself.

Hopefully, this has saved some of you some time and frustration.

The original post is http://tonytriguero.com/iis-7-and-webservices-svc-file-extension/,I will post here for my own references.
Some other references:
http://blah.winsmarts.com/2008-4-Host_a_WCF_Service_in_IIS_7_-and-amp;_Windows_2008_-_The_right_way.aspx

Advertisements
Categories: WCF
  1. No comments yet.
  1. No trackbacks yet.

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: