Dialog is not a function in MVC 5
<p>My _layout.cshtml contains:</p>

<pre><code>&lt;link href='@Url.Content("~/Content/themes/base/all.css")' rel="stylesheet" type="text/css" /&gt;
&lt;link href='@Url.Content("~/Content/themes/base/jquery-ui.css")' rel="stylesheet" type="text/css" /&gt;
&lt;script src='@Url.Content("~/Scripts/jquery-ui-1.12.0.min.js")' type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="@Url.Content("~/Scripts/jquery-1.12.4.js")" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="@Url.Content("~/Scripts/jquery-ui-1.12.0.js")" type="text/javascript"&gt;&lt;/script&gt;
</code></pre>

<p>In Index.cshtml try to:</p>

<pre><code>&lt;div id="dialog_1"&gt;
    &lt;label&gt;Something&lt;/label&gt;
&lt;/div&gt;
&lt;script&gt; 
    $(function () {
        $("#dialog_1").dialog();    
})&lt;/script&gt;
</code></pre>

<p>Get: <code>Uncaught TypeError: $(...).dialog is not a function</code>.</p>