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):
After fixing the problem the .svc file loaded fine and I was off and running.
For more information about onsite, online and video training, mentoring and consulting solutions for .NET, SharePoint or Silverlight please visit http://www.thewahlingroup.com/.