C H A P T E R  7

Handling Errors

Your web application won't always behave as you want it to behave. It doesn't matter how carefully you plan and code your application, there will come a time when you are faced with a bug, an error, or some other kind of unexpected behavior.

There are two facets to dealing with errors:

  • How errors are represented to users. As you'll see, the default approach is far from ideal. Fortunately, some helpful features are available to improve the situation, and each will be demonstrated in this chapter.
  • Tracking down the cause of an error. The main technique is to use the ASP.NET tracing feature, which lets you instrument your code so that you can understand its execution. In this chapter, you'll learn how to enable ...

Get Applied ASP.NET 4 in Context now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.