8.6. Error Pages

As you create and test an ASP.NET application, you'll become familiar with the rich error pages that are shown to describe unhandled errors. These rich error pages are extremely useful for diagnosing problems during development, because they contain a wealth of information. Some of this information includes the source code where the problem occurred (with the offending line highlighted), the type of error, and a detailed error message describing the problem. Figure 8-12 shows a sample rich error page.

Figure 8.12. A rich ASP.NET error page

By default, this error page is shown only for local requests that are sent from the ...

Get Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional, Second Edition 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.