How To Fix: Missing SVC MIME Types and Script Mappings Required for WCF Web Services

IIS7_image Very tiring day today. We struggled almost 5 hours to configure a corrupted IIS 7 on Windows Vista to deploy one of our web applications(WCF Web Services + ASP.NET MVC based). Everything was alright on our development boxes but nothing is running is Vista based computer.

When we try to access any of the Web Services files(ex: http://localhost/appserver/myservice.svc) we were presented a hell a lot of errors like:

  • 404 errors
  • Error 500.0 – Internal Server Error Description: The page cannot be displayed because an internal server error has occurred. Error Code: 0x800700aa.
  • 404.3 – Not found and the mime type not being configured correctly to be served.
  • The ISAPI Filter has dependencies that are not available on the Web server

and many more error. I’ve not noted down all the errors.

Root Cause of the Problem

The root cause of the problem was the missing MIME type configurations and Script Mappings on IIS 7 that are required for serving web services.

Solution

First we tried fixing the missing MIME types & Script mappings by re-creating one by one by looking at the configuration of development boxes running on Windows XP. But it proved as a too difficult task and also we are not sure what are the configurations required on a Vista based IIS server.

To rescue us, one of my friends informed us about the Microsoft .NET Framework application ServiceModel Registration Tool  that automatically installs all the missing MIME types and Script Mappings required for serving WCF Web Servers.

So all we had to was to open a command prompt, navigate to the folder C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation and execute the following command.

ServiceModelReg.exe -i

Like a magic our Web Services are up and running :). Now it’s very relaxing after spending 5 frustrating hours debugging the issue.

Even though I’m exhausted today, I don’t want to miss blogging about this issue. I hope this article helps someone who is struggling with similar problem.

14 thoughts on “How To Fix: Missing SVC MIME Types and Script Mappings Required for WCF Web Services”

  1. I tried about 6 other “fixes” for this problem that I found on the web, and backed each one out after it didn’t work.

  2. When I did this, my web site stopped working. I am using .net 4.0, and this utility seemed to change some settings to .net 3.0 which stopped my web site from launching at all. I looked for this utility in the .net framework 4.0 folder, but it does not exist. Is there a solution for .net 4.0?

  3. THANKS MUCH. I tried about 6 other “fixes” for this problem that I found on the web, and backed each one out after it didn’t work. This one DID work!

    And I have only been at this for 3 1/2 hours :)

    Evan

Leave a Comment

Your email address will not be published. Required fields are marked *