CSS was ignored due to mime type mismatch

“CSS was ignored due to mimetype mismatch”.
This was the issue I was facing for one of my ASP.Net application, although, things were pretty straight forward.

A typical ASP.NET WebForm having masterpage that linked to MyStyles.css as follows:
<link href=”MyStyles.css” rel=”stylesheet” type=”text/css” />

I was using Internet Explorer version 9 and later tested on version 10 as well but find the same problem.
I did a lots of googling for the solution and finally find out that we need to enable a feature in IIS and i.e. Site Content feature.

Following microsoft blog link describe how to add that feature on Windows Server 2008.

Top 10 Interview Questions and Answers Series:

3 thoughts on “CSS was ignored due to mime type mismatch

  1. bruce castro

    As a web developer, I experienced this many times and I know for a fact that this has to do with a complication to the application such a mismatch with the file and the content. The truth is that the Internet Exporer is just not a user friendly browser for any web development.

  2. Dheeraj

    I recently came across your blog and have been reading along.I’m impressed. You’re truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. I’m saving this for future use.
    BWC Web Design Company

Comments are closed.