Tech Dreams

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.

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

  1. Germán
    November 3, 2011 at 4:49 pm (8 years ago)

    Thank you very much!

    The solution worked for me too!

    Reply
  2. canli mac izle
    January 3, 2011 at 4:17 am (9 years ago)

    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.

    Reply
  3. Marcin
    October 4, 2010 at 1:40 pm (9 years ago)

    It helped me. Thanks!

    Reply
  4. Artem
    September 2, 2010 at 1:08 pm (9 years ago)

    Hey, dude. You are awesome!
    By the way: this is applied also on IIS 7.5 under Windows 7.
    Thnx!

    Reply
  5. Indra
    July 18, 2010 at 6:32 pm (9 years ago)

    This helped me too. Good post. Tnx

    Reply
  6. Atul
    July 8, 2010 at 10:38 pm (9 years ago)

    Thanks, It worked for me

    Reply
  7. Manu
    July 7, 2010 at 1:05 pm (9 years ago)

    Yes, Yes.

    Thank you, it helped me.

    Reply
  8. Curt
    June 27, 2010 at 6:25 pm (9 years ago)

    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?

    Reply
  9. sunil
    June 6, 2010 at 10:59 am (9 years ago)

    Great and Thanks a lot gopi. it helped me lot. even i was facing same problem

    Reply
  10. Evan
    April 29, 2010 at 4:18 pm (9 years ago)

    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

    Reply
  11. Mohamed
    March 31, 2010 at 3:22 pm (10 years ago)

    Thanks buddy. This helped me a lot.

    Reply
  12. Shenoy
    March 5, 2010 at 5:40 pm (10 years ago)

    Thanks, It helped me.

    Reply

Leave a reply