title: Bundled CSS file is blank in Web Forms project
body: <p>Overview: I am trying to get Bundling and Minification to work with an existing Asp.Net Forms website. I have everything set up and it works fine in debug. All the appropriate links are generated and my css works great; however, every time I do a release build, or just simply EnableOptimization it generates a good looking link in the correct format, but it is just a blank page so there is no css.</p>
  
  <p>I followed the tutorial here: <a href="http://igorzelmanovich.blogspot.com/2012/09/using-aspnet-bundling-and-minification.html" rel="nofollow">link</a></p>
  
  <p>Here is the code I am using:</p>
  
  <p>Global.asax.cs</p>
  
  <pre><code>       private void Application_Start(object sender, EventArgs e)
              {
                  //Private Website code removed for post
  
                  Bundles.Register();
              }
  </code></pre>
  
  <p>Bundles.cs   (File called from application_start)</p>
  
  <pre><code>    using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Web;
      using System.Web.Optimization;
      using System.Web.UI;
  
      namespace NopSolutions.NopCommerce.Web.Optimization
      {
          public class Bundles
          {
              /// &lt;summary&gt;
              /// Registers Bundles
              /// &lt;/summary&gt;
              public static void Register()
              {
                  var lessBundle = new Bundle("~/Bundles/fhm/product/Less").Include("~/Content/themes/fhm/product/*.css");
                  BundleTable.Bundles.Add(lessBundle);
              }
  
              public static void RenderStyle(Page page, String bundle)
              {
                  var code = System.Web.Optimization.Styles.Render(bundle);
                  page.Header.Controls.Add(new LiteralControl(code.ToHtmlString()));
              }
          }
      }
  </code></pre>
  
  <p>Product Page code where I call the render function</p>
  
  <pre><code>    protected void Page_Load(object sender, EventArgs e)
              {
  
                  //render css style
  
                  Bundles.RenderStyle(this, "~/Bundles/fhm/product/Less");
  
              }
  </code></pre>
  
  <p>Anybody have any ideas what might be going on?</p>