Are able to catch exceptions thrown in Application_Error?

Discussion in 'ASP .Net' started by Author, Sep 23, 2008.

  1. Author

    Author Guest

    I searched a little, but could not find anything helpful.

    In my asp.net 2.0 web application, I am catching application level
    exceptions in Application_Error of Global.asax.

    What if my code inside Application_Error itself throws exception? Can
    we catch it? How?

    Thanks.
     
    Author, Sep 23, 2008
    #1
    1. Advertisements

  2. Author

    George Guest

    Use try... catch there
    PS: Do not forget to clear exception after you done in Application_Error.

    George.
     
    George, Sep 24, 2008
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.