I have created an application using MVC, Java Script, JQuery, Ajax. When I'm debugging using visual studio it works fine without any script errors. When I am hosting my application on IIS server, it shows console errors and my application styles are not working correctly. I have attached the error below.
Error : Resource interpreted as Stylesheet but transferred with MIME type text/javascript:
Image:
Best Answer
I had the exact same problem, cause by lines in my HTML in the following form:
The problem was fixed when I removed
rel="stylesheet"
from the tag.