I am getting the following error when loading an Infragistics style bundle on our deployed test server.
Refused to apply style from 'xxxxxxx.com/.../ because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
// Infragistics CSS bundles.Add(new StyleBundle("~/Content/infragistics").Include( "~/Content/Infragistics/css/themes/infragistics/infragistics.theme.css", "~/Content/Infragistics/css/structure/infragistics.css"));
Use in Page:
The paths are correct, we are using a local NuGet package to load the css into the project.
Any help would be appreciated.
Thank you for posting in our community.
I tried reproducing the described behavior on my side.I created a small application where Infragistics scripts and css files are loaded as a bundle. Afterwards I deployed the application and on my side everything worked as expected. I used the default IIS MIME Type settings, without any modifications.
The application was correctly deployed and afterwards loaded in my browser. Here you will find my sample. Please try deploying it on your side and let me know what is the result.
Looking forward to hearing from you.
I just stopped using the bundle and linked them directly where I can put in the text/css attribute.
Thank you for getting back to me.
I am glad that you find a way to achieve your requirement.
Thank you for choosing Infragistics components.