Application_Error issue

Results 1 to 2 of 2

Thread: Application_Error issue

  1. #1
    Join Date
    Dec 1969

    Default Application_Error issue

    Inside Global.asax I have the following: <BR><BR>void Application_Error(Object sender, EventArgs e) <BR> { <BR> Response.Write("got here"); <BR> Response.End(); <BR> // Create an instance of the MailMessage class and send the email <BR> MailMessage mm = new MailMessage(); <BR> ... do mail stuff <BR> } <BR><BR>Inside web.config I have the following: <BR>&#060;customErrors defaultRedirect="/Errors/ErrorPage.aspx" mode="On"/&#062; <BR><BR><BR>When I force and error to occur the Application_Error routine never gets called but the Error page is diplayed. Any ideas?

  2. #2
    Join Date
    Dec 1969

    Default *Repost.

    Please stick to your original thread.

Posting Permissions

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