title: ASP.NET Forms application displays blank "default.aspx" page sporadically instead of loading/showing contents
body: <p>I have an ASP.NET Forms application, Framework version 4.5, IIS 7.5 in Windows 2008 Server R2 Standard. Sporadically I get a blank page(screenshot below). When I reset the website in IIS the problem gets fixed.. but then happens again in 2/3 days. Web.config file contains "default.aspx" on top as the default document.</p>
  
  <p>In my application, default.aspx is an empty file that gets created on applications start-up - doesn't contain any code/content in it. My guess is that IIS keeps the blank page in cache and delivers the blank page sometimes. All other pages in the solution are virtual pages without physical existence. However, hitting other URLs loads the contents correctly. </p>
  
  <p>I have already made the following attempts that did not solve the problem:</p>
  
  <ol>
  <li>IIS output caching - Prevent all caching for both user-mode and kernel-mode.</li>
  <li><p>Added following code block in Global.asax in order to fix the issue to load default document</p>
  
  <pre><code>protected void Application_BeginRequest(Object sender, EventArgs e)
  {
    var app = (HttpApplication)sender;
    if (app.Context.Request.Url.LocalPath.EndsWith("/"))
    {                   
    app.Context.RewritePath(string.Concat(app.Context.Request.Url.LocalPath, "default.aspx"));
    }
  }
  </code></pre></li>
  </ol>
  
  <p>Can someone come up with some clue? Thanks in advance :)</p>
  
  <p><a href="http://i.stack.imgur.com/bJulS.png" rel="nofollow">Screenshot of the blank page</a></p>