Featured Post

It Takes Time To Save Money

This morning I left the house to go to town to run errands.  I had several things I needed to do which were: get a haircut, purchase a few new vacation clothes, drop off dry cleaning, get a new bass rod and reel (I broke one this week that needs replaced), buy Thompson deck water sealer from Home...

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

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

  • http://www.webhostings.in/ web hosting companies

    Excellent written skills.Every one like this kind of valuable tips

  • http://www.webhostings.in/ hosting server

    I get it clear idea about your topic.Above all the points are explained very clearly.

  • Test123

    Hi,

    I followed the below thread…
    “Got the same problem. Solved by goint into programs – windows features.net framework 3.5.1 and selected WCF http activation” It worked for me too. Thanks.

  • Anonymous

    Hi,
    Got the same problem. Solved by goint into programs – windows features
    .net framework 3.5.1 and selected WCF http activation