Unable To Host WCF Service in IIS using XP SP3 and Visual Studio 2008 SP1

Feb 17 2009 2:04 PM
I am unable to host WCF Service in IIS on XP SP3 and Visual Studio 2008 SP1

Configuration
XP SP3
IIS 5.1
Visual Studio 2008 SP1
HTTP WebSite using WCF Service Template

Error When Browsing .svc file

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


A name was started with an invalid character. Error processing resource 'http://localhost/IISHostedService/Service.svc'. L...

<%@ ServiceHost Language="C#" Debug="true" Service="Service" CodeBehind="~/App_Code/Service.cs" %>


Error When Debugging .svc file
Unable to start debugging on the web server. The server does not support ASP.NET or ATL applications. Click help for more information on how to enable debugging.

When I click the Help button I get directed to http://msdn.microsoft.com/en-us/library/bztkys81.aspx entitled Error: ASP.NET Not Installed.

However  ASP.NET is installed.  I have been debugging Visual Studio 2008 ASP.NET applications in IIS for a while now.  But just to make sure I followed the instructions and ran aspnet_regiis -i. Still does not work.

I checked the IIS Metabase and .svc is a mapped file.

IIS Logs
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2009-02-17 15:50:26
#Fields: time c-ip cs-method cs-uri-stem sc-status

While debugging:
15:50:26 127.0.0.1 DEBUG /IISHostedService/Service.svc 501

While browsing:
15:55:00 127.0.0.1 GET /IISHostedService/Service.svc 304

501 Not Implemented
304 Not Modified

I also just ran servicemodelreg.exe /i  to insure that IIS and the WCF can communicate.


Can anyone provide any guidance as to what is causing the problem an how to fix it? As a side note, no CPT versions of WCF were ever on this PC.

Thanks