An Exception to the Rule, Part 1
Let's face it, when we write Web applications we occasionally have bugs (or in our more politically correct world, issues) within our code. Unfortunately, it always seems that the more senior the tester, that is CEO, CIO, board members, VC, and so on, the more frequent or serious these issues tend to be.
An Exception to the Rule, Part 2
In the previous column, we briefly mentioned Application_Error events and Page_Error events. These events are raised whenever we have an unhandled exception occur within our application. If a Page_Error event is present within an ASP.NET page, and an unhandled error occurs, the event is raised. Application_Error is slightly different. It is raised for all unhandled exceptions in our ASP.NET application and is implemented in global.asax or within an HTTP Module.
Create Custom Error Reporting Pages in ASP.NET
This article describes how to use Visual C# .NET code to trap and respond to errors when they occur in ASP.NET. ASP.NET has improved the error handling options from traditional Microsoft Active Server Pages (ASP). In ASP.NET, you can handle errors at several different levels in your applications.
Custom Errors in ASP.NET
In this article I will talk about customizing default error
page, manipulating configuration file and sending notification
to the administrator about the error.Read more
Custom Errors in ASP.NET
Structured exception handling is a fundamental part of the CLR and provides .NET programmers a great way of managing errors. In addition to CLR exception system, Amit explains how ASP.NET also provides ways of handling errors.
Custom Errors in ASP.NET
When a runtime or design-time error occurs in an application, ASP.NET shows a default error page that gives a brief description of the error along with the line number on which the error occurred. A developer would wish to view this default error page, during the testing of the application since the description helps him in rectifying the error. But he would never want a user trying to access his application, to view this error page. The user would be least bothered to know about the error. Instead of showing the default error page, it would be more sensible to show a customized error page that would let the user send notification of the error to the administrator.
Error handling in ASP.NET applications
Even though you take lot of care in designing your application errors do occur. In case of web applications the chances of errors still increase because of its nature. Errors can be broadly classified into two categories system errors and business logic errors. The first type of errors might be because of network crashes, database crashes or server down-times. The second type of errors is related to particular business rules. These errors vary based on application under consideration. All of these errors call for a robust and user friendly error handling techniques for your applications. In this article we will see various error handling techniques. Our focus will be on ASP.NET web applications though many of the concepts are applicable to other types of applications as well.
Global Error Handler, Part 2
One of our first articles using .Net was a Global Error Handler that was included in our Global.Asax file. Since then we have modified the original code with a few additional features. We also use the same functions in several web sites so we...
Logging Unhandled Page Exceptions To The System Event Log
Error handling is a critical part of building enterprise level web applications, for that matter, it is a huge page of any application. In one of last weeks article we discussed using the Try...Catch...Finally statement to catch and respond to exceptions thrown during the page execution process. In this article I will be introducing a new way to catch Page-Level exceptions by introducing the HandleError Method. I will demonstrate what the firing order of the two are (try..catch..finally and HandleError, and demonstrate how you can try to catch exceptions in the Pages HandleError event if your Try...Catch statement fails. Once the exception is caught I'll then demonstrate how to log this exception and it's details to the Systems Event Log and finally redirect the clients browser to a custom error page.
Manual File Downloads In ASP.NET
Fighting Response.End and the infamous ThreadAbortException while trying to implement manual file downloading in an ASP.NET application.
Try..Catch..Finally in ASP.NET
Exception handling in ASP.NET is a new methodology to a classic ASP programmer. Read this article to know about what exactly is this new Exception handling mechanism?
InfoWorld is a enterprise-level publication that focuses on technology and HOW to use it to achieve higher revenues, more efficient operations and greater profits.
subscribe now