Skip to content

Problem running WCF service in IIS 7

Had a problem running a WCF service in IIS 7.0 on Windows Server 2008 today, kept receiving an error when loading the .svc file in a web browser:

“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.”

It seems re-registering WCF on Windows Server did the trick (I also believe this works if you experience the same problem in Vista):


%Windir%\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe -r

VN:F [1.9.10_1130]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.10_1130]
Rating: 0 (from 0 votes)
Bookmark and Share
kick it on DotNetKicks.com
Shout it

NOW, FOR A WORD FROM OUR SPONSORS

3 Comments

  1. Did you install WCF HTTP activation via Server Manager. That’s how you usually get WCF support in W2K8.

    VA:F [1.9.10_1130]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.10_1130]
    Rating: -1 (from 1 vote)
    Posted on 24-Jan-09 at 4:25 am | Permalink
  2. Graham O'Neale

    I’m not sure Thomas, under which Role Service is that option? Also in the Role of Web Server (IIS)?
    I could not find it, thanks for your comments.

    VA:F [1.9.10_1130]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.10_1130]
    Rating: +1 (from 1 vote)
    Posted on 05-Feb-09 at 1:57 pm | Permalink
  3. ben

    Under Features, .Net Framework3.0 Features -> WCF-Activation

    VA:F [1.9.10_1130]
    Rating: 5.0/5 (1 vote cast)
    VA:F [1.9.10_1130]
    Rating: +1 (from 1 vote)
    Posted on 24-Sep-09 at 6:18 am | Permalink

One Trackback/Pingback

  1. [...] If everything has gone down the tubes even more, and now even your regular WCF services aren’t loading at all, and you’re encountering a MIME type error in the browser, it’s probably because attempting to install the windows feature borked it when it didn’t work first time and took down half of the WCF IIS configuration with it.  So see my previous post on how to fix a corrupt WCF IIS configuration. [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

My name is Graham O'Neale and I'm a software architect from Gold Coast, Australia. I am an overtime thinker, full time coder and awake part time in the real world. I have a keen interest in software development, particularly in the realm of programming (C#, ASP.NET, ASP.NET MVC, LINQ (2 SQL), Entity Framework, Silverlight, Blend, WCF, WPF) and a keen interest in the cutting edge and innovation. I have a new found love for design patterns, ALT.NET practices and well crafted software architecture. The purpose of this blog is to express any thoughts, findings, tips and gripes along my travels in the wonderful world of coding and technology...