title: html5 cache-manifest file in mvc3 and windows azure returns 500 error
body: <p>i'm hosting an mvc3 web application in a windows azure web-role , and have recently added the html5 cash manifest.</p>
  
  <p>in local environment everything works well , but once uploaded to dev environment on azure , i'm getting an HTTP 500 error when trying to access the manifest.</p>
  
  <p>the cache manifest file is being served by an action and controller , similar to the technique sescribed in <a href="http://deanhume.com/Home/BlogPost/mvc-and-the-html5-application-cache/59" rel="nofollow">Dean Hume's article</a></p>
  
  <p><strong>the controller:</strong></p>
  
  <pre><code>    public ActionResult Manifest()
      {
          Response.ContentType = "text/cache-manifest";
          Response.ContentEncoding = System.Text.Encoding.UTF8;
          Response.Cache.SetCacheability( System.Web.HttpCacheability.NoCache);
          return View();
      }
  </code></pre>
  
  <p><strong>the View:</strong></p>
  
  <pre><code>    @{
  Response.ContentType = "text/cache-manifest";
  Response.ContentEncoding = System.Text.Encoding.UTF8;
  Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
  Layout = null;
  </code></pre>
  
  <p>}</p>
  
  <pre><code>    CACHE MANIFEST 
      # 29/3/2012:V6
      NETWORK:
         * 
      CACHE: 
       #JS FILES
      /Scripts/rolllo_1.0.js
      /Scripts/rolllo_1.0.js
      /Scripts/jquery.mobile-1.0b3.min.js
      /Scripts/jquery.validate.min.js
      /Scripts/jquery.validate.unobtrusive.min.js
      /Scripts/jquery.unobtrusive-ajax.min.js
      /Scripts/rolllo_1.0.js
  
      #CSS FILES 
      /Content/Rtl.css
      /Content/JQM/jquery.mobile-1.0b3.css
      /Content/Site.css?v=2" 
  
  
      FALLBACK:
      /Group/Offline
  </code></pre>
  
  <p><strong>the _Layout:</strong></p>
  
  <pre><code>    &lt;html manifest="@Url.Action("Manifest","Home")"&gt;
  </code></pre>
  
  <p><strong>error messages:</strong> 
  from the <em>chrome console</em> : 'Application Cache Error event: Manifest fetch failed (500)'</p>
  
  <p>and from <em>fiddler</em> : </p>
  
  <pre><code>    HTTP/1.1 500 Internal Server Error
      Cache-Control: no-cache
      Pragma: no-cache
      Content-Type: text/cache-manifest; charset=utf-8
      Expires: -1
      Date: Thu, 29 Mar 2012 09:32:22 GMT
      Content-Length: 5875
  </code></pre>
  
  <p>i'd love some help.</p>