WCF .svc files in IIS7 on Vista RC1
20th Sep 2006, 18:33 GMT
My team has been working on a very cool demo scenario for a few months now. We've upgraded it from the June CTP, to the July CTP, and rencently to RC1 of the .NET Framework 3.0. Today I burned about an hour trying to get a demo working on Vista RC1. The problem was that I could not access a WCF service (.svc file) that was hosted in IIS7. I couldn't browse to the .svc file in Internet Explorer. Apparently there are some known issues with RC1 of the .NET Framework 3.0 when on XP and Server 2003. Wenlong Dong has documented the issues here and he has provided a few work arounds. However, I was unable to get any of these work arounds to address my problems on Vista and IIS7. Instead, here's the solution that worked for me: First update the scriptmaps for the .svc extension in IIS7 by running Open the ApplicationHost.config file with notepad. The file is located at: c:\windows\system32\inetsrv\config\applicationHost.config Add a Mime type for the .svc extension. Search for in the config file and add a new entry as follows: Navigate to the web site where you want to configure support for .svc files and add the svc handlers. For example, in my situation I navigated to the element . Then I added the following handlers within the element: After making these configuration changes I was able to browse to the .svc file within the browser. I can't claim that I've mastered all the concepts in IIS7 or the config file structure yet, but hopefully that will save a few of you an hour.
WCF .svc files in IIS7 on Vista RC1 related news:
- What if I change my mind? (Downloading Vista) — Channel 9
- Experiences with Vista RC1 - a Brief Report — OSNews
- Vista RC1 Experiences Highly Variable — TopXML Reblogger XML News
- vista rc1 — Jason Langridge's WebLog - MR Mobile!
- Forum post for Windows Communication Foundation (Indigo) RC1 installation issues — Aaron Stebner's WebLog
- Toshiba updates notebook drivers for Vista RC1 — jkOnTheRun
- Vista Clients (32 and 64 bit) on SBS — The Official SBS Blog
- Windows Vista RC1 Mega Review, Security, and More — OSNews
- Your competitors are running RC1 — Steve Clayton: Geek In Disguise
- Update for Windows Vista RC1 (KB925028) — ActiveWin.com Headlines