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
3 Comments
Did you install WCF HTTP activation via Server Manager. That’s how you usually get WCF support in W2K8.
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.
Under Features, .Net Framework3.0 Features -> WCF-Activation
One Trackback/Pingback
[...] 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