Robust ASP.NET Exception Handling

Robust ASP.NET Exception Handling
Author :
Publisher :
Total Pages :
Release :
ISBN-10 : OCLC:644773772
ISBN-13 :
Rating : 4/5 ( Downloads)

Book Synopsis Robust ASP.NET Exception Handling by : Lee Dumond

Download or read book Robust ASP.NET Exception Handling written by Lee Dumond and published by . This book was released on 2009 with total page pages. Available in PDF, EPUB and Kindle. Book excerpt: Annotation This Wrox Blox will teach you how to unravel the mysteries of exception handling in ASP.NET. First, youll get a thorough introduction to structured exception handling in the .NET Framework, learn about the Exception class, the related C♯ language constructs, and how exceptions propagate up the call stack. Then, youll delve into a variety of practical topics such as: when, where, and how to properly throw, catch, and handle exceptions in your code; how to employ defensive programming techniques to avoid triggering the most common CLR exceptions; adopting exception handling best practices, handling exceptions from rich ASP.NET server controls, data-bound controls, data sources, and AJAX asynchronous postbacks; and processing unhandled exceptions at both the page and application levels. The author also walks you through the building of a complete, reusable, and fully configurable ASP.NET exception processing framework that extends far beyond ASP.NETs built-in error handling capabilities. Youll learn how to collect information about the state of the application when the exception occurred; how to leverage various ASP.NET state-handling mechanisms such as Application, Context, Session, ASP.NET Cache, cookies, and query strings to store and pass error data; create a friendly, informative, and highly functional custom error UI; show friendly error messages to normal visitors, while showing detailed error reports only to site managers based on authentication, authorization, or IP; provide a way for users to add their own information to error reports; persist errors to the Windows Event Log, XML files, or a custom database; send detailed error notifications via e-mail and SMS text; and build an administrative dashboard to list, sort, page, view, and manage error logs. Once complete, youll learn how to quickly and easily add this new framework to any web site you create using a simple .NET assembly. A complete sample application and C♯ source code for the exception processing framework are available as a companion download. Table of ContentsWhat Is an Exception? 2The Exception Class 3Structured Exception Handling 5Handling Exceptions 5Exception Propagation: Part 1 9Throwing Exceptions 11Exception Handling Best Practices 13Defensive Programming 13Choose the Right Exception to Throw 17Exceptions Should Be Exceptional 18Dont Abuse Exceptions 18Avoid Swallowing Exceptions 19Dont Try to Handle Everything 20Other Exception Handling Scenarios 20Handling Exceptions in ASP.NET Data Sources 21Handling Exceptions in ASP.NET Data-Bound Controls 22Handling Exceptions in ASP.NET Rich Server Controls 22Handling Exceptions in Asynchronous Postbacks 24Managing Unhandled Exceptions in ASP.NET 25Exception Propagation: Part 2 25The ASP.NET Default Exception Handler 28Page. Error and HttpApplication. Error 30Building a Custom ASP.NET Exception Handler 32The Fourth Coffee Sample Site 33The LD. ExceptionHandling Class Library 39Creating a Custom Error UI 54Adding the Custom Exception Handler to Your Own Site 56Conclusion 57Lee Dumond 58Usage Rights for Wiley Wrox BloxAny Wrox Blox you purchase from this site will come with certain restrictions that allow Wiley to protect the copyrights of its products. After you purchase and download this title, you:Are entitled to three downloadsAre entitled to make a backup copy of the file for your own useAre entitled to print the Wrox Blox for your own useAre entitled to make annotations and comments in the Wrox Blox file for your own useMay not lend, sell or give the Wrox Blox to another userMay.


Robust ASP.NET Exception Handling Related Books

Robust ASP.NET Exception Handling
Language: en
Pages:
Authors: Lee Dumond
Categories: Active server pages
Type: BOOK - Published: 2009 - Publisher:

DOWNLOAD EBOOK

Annotation This Wrox Blox will teach you how to unravel the mysteries of exception handling in ASP.NET. First, youll get a thorough introduction to structured e
Performance Tuning and Optimizing ASP.NET Applications
Language: en
Pages: 380
Authors: Kenneth Tu
Categories: Computers
Type: BOOK - Published: 2013-06-05 - Publisher: Apress

DOWNLOAD EBOOK

The technical book market today is flooded with a slew of titles on how to build applications with the .NET technology, and many are undoubtedly very good. But
Programming Microsoft ASP.NET 4
Language: en
Pages: 1444
Authors: Dino Esposito
Categories: Computers
Type: BOOK - Published: 2011-02-15 - Publisher: Pearson Education

DOWNLOAD EBOOK

Completely reengineered for ASP.NET 4—this definitive guide deftly illuminates the core architecture and programming features of ASP.NET 4 in a single, pragma
Hallo .NET 8.0: Practical ASP.NET Core Minimal API
Language: en
Pages: 142
Authors: Agus Kurniawan
Categories: Computers
Type: BOOK - Published: - Publisher: Ilmu Data Publisher

DOWNLOAD EBOOK

"Hallo .NET 8.0: Practical ASP.NET Core Minimal API" is a meticulously crafted guide that takes you on an explorative journey into the world of ASP.NET Core 8.0
Developing Web Applications with ASP.NET and C#
Language: en
Pages: 448
Authors: Hank Meyne
Categories: Computers
Type: BOOK - Published: 2002-09-18 - Publisher: John Wiley & Sons

DOWNLOAD EBOOK

Learn how to create the basic, dynamic, and advanced ASP.NET pages in C# Packed with tips, tricks, and workarounds, this book covers every aspect of developing