Capturing last error in Global.asax

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've added code to capture the last error (Dim ex As Exception =
Server.GetLastError() ) in the Application_Error sub. And I log the error in
a database. Unfortunately all that seems to be captured is a
System.Web.HttpUnhandledException exception. In the test case i'm using it
should be reporting System.IO.FileNotFoundException. Any ideas why i'm not
getting the correct exception?

Thanks in advance.
 
Back
Top