0

I am working on client side web part using JavaScript and CSS for customization.

I have added custom css and JS into the page and I am getting the message on console of the browser i.e.

CSS was ignored due to mime type mismatch

I checked the paths of the CSS files and all of them are correct. I searched over the internet for the same issue and applied following paths, but none of them worked.

  • Installed the Core update in SharePoint available here.

  • Installed the Language Update Pack available here

  • Checked the Static Content feature is installed in the machine

  • Mime Type is available in IIS

  • Checked the Registry for the CSS and it has proper file type mentioned i.e. text/css.

The above solutions did not work.

The interesting part is: when I am loading the same css from SharePoint Hive (15) it is loading properly.

Can someone please help me out for solving the issue.

Environment: SP2019 Windows Server 2019 Standard Evaluation

TIA.

1 Answer 1

0

for anyone facing this problem, the solution is to go to

  • Open Server Manager
  • Add roles and features Role-based or feature-based installation

Click Web Server (IIS) -> Management Tools -> check IIS 6 Management Compatibility

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.