Running a WCF Service on IIS 7

I was trying to get a WCF service going on my Windows 7 machine tonight that I call from a Silverlight 3 application and ran into the following error when trying to view the .svc file in the browser:

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.


After scratching my head for a few minutes I figured something must not be installed since IIS 7 is very “componentized”.  After looking through Programs and Features –> Turn Windows features on or off I came across a Microsoft .NET Framework 3.5.1 section.  I checked the two Windows Communication Foundation checkboxes shown below (the second box enables Windows Activation Service - WAS so that IIS can host WCF services that can be called using non-HTTP bindings such as TCP):

image

After fixing the problem the .svc file loaded fine and I was off and running.

 

Logo

For more information about onsite, online and video training, mentoring and consulting solutions for .NET, SharePoint or Silverlight please visit http://www.thewahlingroup.com/.

Published Tuesday, July 21, 2009 11:00 PM by dwahlin
Filed under: ,

Comments

# Running a WCF Service on IIS 7 | ASP Scribe

Wednesday, July 22, 2009 2:07 AM by Running a WCF Service on IIS 7 | ASP Scribe

Pingback from  Running a WCF Service on IIS 7 | ASP Scribe

# Dew Drop – July 22, 2009 | Alvin Ashcraft's Morning Dew

Wednesday, July 22, 2009 9:26 AM by Dew Drop – July 22, 2009 | Alvin Ashcraft's Morning Dew

Pingback from  Dew Drop – July 22, 2009 | Alvin Ashcraft's Morning Dew

# re: Running a WCF Service on IIS 7

Wednesday, July 22, 2009 12:26 PM by Milan Negovan

Dan, since you're hosting in IIS, you probably don't even need the second option.

# re: Running a WCF Service on IIS 7

Wednesday, July 22, 2009 12:36 PM by dwahlin

Milan:  Yeah, for my current situation I don't actually need it but the second option enables the Windows Activation Service (WAS) feature which allows IIS hosted WCF services to expose non-HTTP endpoints such as TCP (as you probably already know).  Can be very useful when needed which is why I went ahead and checked it.

# Daily tech links for .net and related technologies - July 22-24, 2009

Thursday, July 23, 2009 7:11 AM by Sanjeev Agarwal

Daily tech links for .net and related technologies - July 22-24, 2009 Web Development Simplify calling

# Running a WCF Service on IIS 7 - Dan Wahlin's WebLog

Thursday, July 23, 2009 12:14 PM by 9eFish

9efish.感谢你的文章 - Trackback from 9eFish