Catching errors

Results 1 to 2 of 2

Thread: Catching errors

  1. #1
    Join Date
    Dec 1969

    Default Catching errors

    Hey guys, anybody have any thoughts on this?<BR><BR>I have the web.config set to redirect to a customer error page which works fine but when I try to call the Server.GetLastError().InnerException.ToString it generates an error saying that the object does not exist. <BR><BR>This only happens on specific type of errors like a file missing but not on application errors. Anybody have an idea how I can get the error message on these non application errors?<BR><BR>Thanks!

  2. #2

    Default RE: Catching errors

    If they are 404 HttpExceptions, they may not have innerExceptions.<BR><BR>The 500 error is caused by annother error, thus it should have the inner error.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts