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.
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.
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”
This helped me on Server 2008R2 .Net 4.5.5, IIS 7. Thanks a mil..!!
Thank you very much!
The solution worked for me too!
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.
Sometimes you don’t have access to IIS. In those cases, you have to modify webconfig. Take a look at this solution: http://www.ittraining.com.ar/post/Problemas-con-WCF-Deployment-localmente-funciona-pero-no-en-el-host.aspx
It helped me. Thanks!
Hey, dude. You are awesome!
By the way: this is applied also on IIS 7.5 under Windows 7.
This helped me too. Good post. Tnx
Thanks, It worked for me
Thank you, it helped me.
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?
Great and Thanks a lot gopi. it helped me lot. even i was facing same problem
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 :)
Thanks buddy. This helped me a lot.
Thanks, It helped me.