title: .NET Bundling - 404 when Enable Optimizations true
body: <p>I'm having an issue when <code>BundleTable.EnableOptimizations = true;</code> is set, the virtual URLs are returning 404s. This happens for both my JS and CSS bundles. Here is an example of a bundle I have:</p>
  
  <pre><code>  BundleTable.Bundles.Add(
        new StyleBundle("~/css")
            .Include("~/ui/basic/foundation.css")
            .Include("~/ui/basic/all.css")
            .Include("~/ui/basic/print.css")
        );
  </code></pre>
  
  <p>I have tried changing the bundle name/path to random characters to be sure that it was definitely not an existing path. I also tried adding bundle to my modules by:</p>
  
  <pre><code>&lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"&gt;
          &lt;remove name="BundleModule" /&gt;
          &lt;add name="BundleModule" type="System.Web.Optimization.BundleModule" /&gt;
  </code></pre>
  
  <p>I have bundling running in the same fashion on another project locally which is all working fine. </p>
  
  <p>If anyone has any ideas what it could be that is causing the issue I would greatly appreciate the help.</p>
  
  <p>PS: the project is sitecore using forms. (Same as the other project which is working fine)</p>