IIS 10, VS 2015:Page rendering fine when run locally but loses styling on publish
<p>This is the code in the default _Layout.cshtml that is added on creation of the project. This is shared by other views. </p>

<pre><code>&lt;head&gt;
    &lt;meta charset="utf-8" /&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;title&gt;@ViewBag.Title - My ASP.NET Application&lt;/title&gt;
    @Styles.Render("~/Content/Site.css")
    &lt;link href="~/Content/Site.css" rel="stylesheet" type="text/css" /&gt;
    &lt;link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" /&gt;
    &lt;script src="/Mvc/Scripts/modernizr-2.6.2.js"&gt;&lt;/script&gt;
&lt;/head&gt;
</code></pre>

<p>All other views are rendered properly when run locally, i.e. they all get the same basic styling when run from the visual studio. But the pages loose styling after I published it using IIS 10.0, yet give me the desired look when run locally. I am using Firefox and Chrome, and not Edge.</p>

<p>How do i solve this?</p>