Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
CSS Mime Type Failure
posted

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.

Bundle Config:

// 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:

@Styles.Render("~/Content/infragistics")

The paths are correct, we are using a local NuGet package to load the css into the project.

Any help would be appreciated.

Kenn