title: Asp.net 4.0 : How to get exception details in custom error page?
body: <p>We are using custom error provided by asp.net config setting. In entire application (PL/BLL/DAL) we are not using any try catch. So for any exception in any layer application redirect user to custom error page set in custom error setting in config file. Now we want to log following information in log file before showing error page:</p>
  
  <pre><code>- Date &amp; time
  - Exception message &amp; strack trace.
  - Page Name
  - Method Name
  - Method Parameter &amp; values.
  </code></pre>
  
  <p>Please help me how to collect above information in custom error page_load event??</p>
  
  <p>Thanks,</p>
  
  <p>@Paul</p>