I saw two methods for implementing global error handling in an ASP.NET MVC 3 application. One method is implemented using the Application_Error method in Global.asax.cs .
For example ( Error Handling in global.asax ):
public class SomeWebApplication : System.Web.HttpApplication {
Another method is through the filter attribute [HandleError] registered in the RegisterGlobalFilters method, again in Global.asax.cs .
What is the best way to approach this? Are there any significant flaws for any approach?
source share