title: Server.Transfer cannot render an MVC-View
body: <p>In my Application_Error event handler i want to render an MVC-View for 404. I do not want to redirect because of SEO.</p>
  
  <pre><code>void Application_Error(...)
  {
   if (serverException is HttpException &amp;&amp; ((HttpException)serverException).GetHttpCode() == 404)
   {
    Server.Transfer("/error/404"); //*
   }
  }
  </code></pre>
  
  <p>//* Fails, because it cannot find the path on disk. Of course not because it should be handled by MVC.</p>
  
  <p><strong>How to render an MVC-View from Application_Error?</strong></p>
  
  <p>I do not want to redirect.</p>