IIS7 & WCF error

If you're getting:

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.

This is because IIS7 isn't setup to serve out WCF svc files by default.  Quick fix is this:

%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe -r -y

Thank god for the internet and David Sandor.

posted @ Thursday, March 19, 2009 7:01 PM

Print

Comments on this entry:

# re: IIS7 & WCF error

Left by Richard Loba at 5/13/2009 2:37 AM
Gravatar
Thank you, you resolved my problem.
When you launch the ServiceModelReg.exe lots of stuff happens. At first you wonder, I hope i can trust this, and yes you can.

It did the job,

Thank you, and good job
Richard Loba
RichLoba@hotmail.com

# re: IIS7 & WCF error

Left by Vinod Gupta at 6/10/2009 1:15 AM
Gravatar
Folks,

If you are using Windows Vista and IIS7 and want to deploy a WCF on IIS7 then by default you may see the site non-functional, follow the steps to enable WCF settings (Start->Run-> OptionalFeatures and check Microsoft .NET framework 3.0 and underneath WCF options)
When the ServiceModel Registration Tool is run on Windows Vista, the Windows Features dialog may not reflect that the Windows Communication Foundation HTTP Activation option under Microsoft .NET Framework 3.0 is turned on. The Windows Features dialog can be accessed by clicking Start, then click Run and then typing OptionalFeatures.
So go to the Windows Features and check in the Microsoft .NET Framework 3.0 the Windows Communication Foundation HTTP Activate and the Windows Communication Foundation non-HTTP Activate.

http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/224f04bd-12e5-4988-a08c-038c66e0705c

# re: IIS7 & WCF error

Left by Emmanuel at 1/24/2010 8:26 PM
Gravatar
simply superb tip. saved lot of hours of headache. Thank you.

# re: IIS7 & WCF error

Left by forum di giochi at 3/15/2010 11:39 PM
Gravatar
Thanks for such a beautifully composed, informative article.I think your designing work to this is really great .I really appreciate your work to this site.So thanks for it.I hope you can continue this type of hard work to this site in future also..Because this blog is really very informative and it helps me lot.
Comments have been closed on this topic.