Skip to main content

Posts

Showing posts from April, 2017

Gracefully notifying end user about application error in .Net and .Net Core versions

We generally do error logging for the application to know what error might have occurred in the application. Notifying the end user about the error is equally important. Also, it is always better to implement this at first place rather than doing at a later stage. I have seen many big company's websites ending with .NET yellow page of death. Now, it is really good that the default behavior is removed from .Net Core framework with some generic error message. We would look how to implement generically and use in older frameworks and some tips on .Net Core as well. The idea is to create MVC Controller for error and then redirect it from any locations like Filters or Global Exception handling. Also, we would briefly look into the global AJAX error handling system since heavy usage of AJAX in current development trend. The few steps that we are going to do. - Represent application errors with enum as system/application have different ways to deal with errors like though Exceptio