Note that there are some explanatory texts on larger screens.

plurals
  1. POBundled css not displaying after deploy ... ASP.NET MVC4
    primarykey
    data
    text
    <p>When deploying my MVC application, the .NET 4.5 framework is bundling &amp; minifying my CSS. However, the resultant file is empty, therefore the CSS rules are not applied. In Chrome, I get a <code>Resource interpreted as Stylesheet but transferred with MIME type text/plain</code> warning. In IE9, I get a <code>CSS was ignored due to mime type mismatch</code> warning. </p> <p>This is what's in my BundleConfig</p> <pre><code>bundles.Add( new StyleBundle("~/Content/bootstrap").Include( "~/Content/bootstrap/bootstrap-responsive.css", "~/Content/bootstrap/bootstrap-editable.css", "~/Content/bootstrap/FileUpload.css")); </code></pre> <p>Here is my Layout head:</p> <pre><code>&lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;meta http-equiv="x-ua-compatible" content="IE=Edge" /&gt; &lt;title&gt;@ViewBag.Title&lt;/title&gt; &lt;link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /&gt; &lt;meta name="viewport" content="width=device-width" /&gt; &lt;link href="@ViewBag.StyleUrl" rel="stylesheet" type="text/css" /&gt; @Styles.Render("~/Content/bootstrap") &lt;script src="~/scripts/libs/modernizr/modernizr-2.5.3.js" type="text/javascript"&gt;&lt;/script&gt; &lt;/head&gt; </code></pre> <p>The extra stylesheet is for a dynamically loaded stylesheet based on config in our Admin tool.</p> <p>When I run this locally, or if I set debug="true", then I get my individual files &amp; everything looks as it should. If I hardcode these in to my Layout page, they display fine. I've checked IIS &amp; see the correct MIME type for CSS (which makes sense given that hardcoded values work). I've also checked to make sure the "Static Content" role service is installed, as I came across that in my googling as well. </p> <p>Any thoughts?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload