title: Razor view errors not displaying source code
body: <p>Whenever an error is thrown in my Razor view (.cshtml), I get a yellow screen that states </p>
  
  <blockquote>
    <p>The source code that generated this
    unhandled exception can only be shown
    when compiled in debug mode. To enable
    this, please follow one of the below
    steps, then request the URL:</p>
  </blockquote>
  
  <p>It then says to either set the <code>&lt;@ Page Debug="true"&gt;</code> in the view or set the <code>&lt;compilation debug="true"&gt;</code> in the web.config.</p>
  
  <p>I checked my web.config and the <code>&lt;compilation debug="true"&gt;</code> is already set. To exhaust other options, I tried adding it to all the <code>web.config</code> files in the view folders, but no change.</p>
  
  <p>I also checked that the projects are being compiled as <code>Debug</code> and not <code>Release</code>. Any thoughts as to why the source code where the error is being thrown is not being displayed?</p>
  
  <p><strong>Edit:</strong> My application was updated from ASP.NET MVC 2 to MVC 3.</p>