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/.

comments powered by Disqus

2 Comments

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

  • 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.

Comments have been disabled for this content.