title: Bundling scripts are not getting rendered
body: <p>I am having a problem with script bundling and minification with ASP .NET
  I have tried all popular solution found on internet but still having the same problem.</p>
  
  <p>My <code>BundleConfig.cs</code> looks like</p>
  
  <pre><code>namespace MYPROJ{
  public class BundleConfig
  {
      public static void AddDefaultIgnorePatterns(IgnoreList ignoreList)
      {
          if (ignoreList == null)
              return;
          ignoreList.Ignore("*.intellisense.js");
          ignoreList.Ignore("*-vsdoc.js");
          ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
          ignoreList.Ignore("*.min.js", OptimizationMode.WhenDisabled);
          ignoreList.Ignore("*.min.css", OptimizationMode.WhenDisabled);
      }
  
      public static void RegisterBundles(BundleCollection bundles)
      {
          bundles.IgnoreList.Clear();
          AddDefaultIgnorePatterns(bundles.IgnoreList);
  
          bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                      "~/Scripts/jquery-{version}.js"));
  
  …
  …
  
          //bundles.Add(new ScriptBundle("~/Scripts").Include("~/Scripts/jquery.unobtrusive-ajax.min.js", "~/Scripts/kendoui/kendo.all.min.js", "~/Scripts/kendoui/kendo.combobox.min.js", "~/Scripts/kendoui/kendo.grid.min.js"));
          //bundles.Add(new ScriptBundle("~/Scripts").Include("~/Scripts/kendoui/kendo.all.min"));
          //bundles.Add(new ScriptBundle("~/Scripts").Include("~/Scripts/kendoui/kendo.combobox.min"));
          //bundles.Add(new ScriptBundle("~/Scripts").Include("~/Scripts/kendoui/kendo.grid.min.js"));            
          bundles.Add(new ScriptBundle("~/Scripts").IncludeDirectory("~/Scripts", "*.js").IncludeDirectory("~/Scripts/kendoui", "*.js"));
  
          ……
          BundleTable.EnableOptimizations = true;
      }
  }
  }
  </code></pre>
  
  <p>And in master view:</p>
  
  <pre><code>@Scripts.Render("~/Scripts")
  </code></pre>
  
  <p>Now after all this when I runs I get this tag:</p>
  
  <pre><code>&lt;script src="/Scripts?v=ZnxC8dcoc3fJ-hfKQHLiTe19PjJFHwPhwHPUncuBtzE1"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>And upon using chrome code inspector I found out that the status code for the above resource is <code>Status Code: 302 Found</code> And for <code>Scripts/</code> it is <code>Status Code: 404 Not Found</code></p>
  
  <p>And I also cannot access the script file by clicking it in the view source, so looks like nothing is loaded however all files and directories are rightly placed.
  Just for the info, my styleSheets bundling is working fine.</p>
  
  <p>Kindly help Thank you.</p>