Featured Post

Back to the Basics: Montgomery Alabama Code Camp Jan 31st 2009

The Alabama Code Camp in Montgomery, AL will be held on January 31st, 2009.  I’ll be speaking at the code camp running a full track that is called “Back to the Basics”.  Here is the purpose of the track: The Back to the Basics series is a primer for anyone that is starting at ground zero...

Read More

Running WCF Service in IIS on Windows 7 Error: no svc MIME Type

Posted by Keith Elder | Posted in MVP10, WCF | Posted on 06-11-2009

4

This evening I deployed a Silverlight application to my local machine while trying to debug a security / authorization issue.  I setup a quick web application in IIS7 on a fairly fresh new version of Windows 7.  When I opened the page for the service I was presented with the following.

image

I went in and looked at the MIME types in IIS7 and sure enough, there wasn’t a .svc MIME type.  If you, dear reader, just installed Windows 7 (or Vista) and run into this same issue here is the fix.  It is easy.  Go to the following path and run the following utility on a command prompt as an administrator (very important!).

c:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\servicemodelreg -i

When you run the command you’ll see this and that is a good thing.  After it completes try to reload your page.  At least *that* error will be taken care of. 

image