Implementing exception handling in ASP.NET 3.5 -


I want to apply exception handling to an asp.net application. How do you suggest it?

  • Should receive an email with exception details
  • I understand that there are several ways to implement exceptions (examples: Log message in Event Viewer)

    What is the recommended approach?

    Recommended Approach What exactly do you need to do with error information?

    For the simple app, just the web. It may be enough to set the config file to redirect to a friendly error page.

    It is generally a good idea to send the database, files, windows application logs or information Records the web service for dealing with Global. ASXX Application_Error event. You can also use web.config to get your friendly page along with it. Generally I do not advise to use Windows Error Logs because they work a bit hard, but nothing is wrong with it.

    For very detailed operational information, including alerts and information messages, devices are widely used. Normally you go this route for products or enterprise level applications, where your support teams need as much information as possible to diagnose the errors.

    Some basic error handling setup in MSDN and what you can do with them.


    Comments

    Popular posts from this blog

    oracle - The fastest way to check if some records in a database table? -

    php - multilevel menu with multilevel array -

    jQuery UI: Datepicker month format -