---
title: "Asp.Net error handling"
url: "https://osherove.com/blog/2003/9/21/aspnet-error-handling.md"
canonical: "https://osherove.com/blog/2003/9/21/aspnet-error-handling.html"
published: "2003-09-21T11:22:00"
updated: "2003-09-21T11:22:00"
tags: ["Cool Articles"]
author: "Roy Osherove"
description: "Here' are two ways to incorporate global error handling in ASP.NET: Implement IHttpHandler Use the HttpApplication.Error event And here's a more in-depth article about this subject (also points to…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Asp.Net error handling

By Roy Osherove September 21, 2003 In [Cool Articles](https://osherove.com/blog/category/cool-articles)

**Historical article** · Originally published September 21, 2003; technical details may be outdated.

Here' are two ways to incorporate global error handling in ASP.NET:

- [Implement _IHttpHandler_](http://staff.develop.com/candera/weblog2/permalink.aspx/60cb3dc2-fe67-4f88-9771-eeaebe507795)
- [Use the _HttpApplication.Error_ event](http://dotnetguy.techieswithcats.com/archives/003785.shtml)

And here's a more in-depth article about this subject (also points to HttpApplication.Error):

- [Global Error handling in ASP.Net](http://www.developer.com/net/asp/article.php/961301)

And here's a recent chat on MSDN:

- [ASP.NET error handling and tracing](http://msdn.microsoft.com/chats/vstudio/vstudio_051602.asp)

## More in Cool Articles

[All posts in Cool Articles](https://osherove.com/blog/category/cool-articles)

- Sep 22, 2003

    ### [Sharing ASP.NET user controls accross projects](https://osherove.com/blog/2003/9/22/sharing-aspnet-user-controls-accross-projects.html)

- Sep 21, 2003

    ### [\[Article\] Introduction to Test-driven development with NUnit and the NUnit-Add-in](https://osherove.com/blog/2003/9/21/article-introduction-to-test-driven-development-with-nunit-a.html)

- Sep 17, 2003

    ### [.Net resources abound at ARK 3.0](https://osherove.com/blog/2003/9/17/net-resources-abound-at-ark-30.html)

- Sep 15, 2003

    ### [I'm in the "contributor spotlight" on MSDNAA](https://osherove.com/blog/2003/9/15/im-in-the-quotcontributor-spotlightquot-on-msdnaa.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
