Handling Errors with ASP.NET MVC
page 5 of 5
by Steven Smith
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 43023/ 97


There are a number of ways to deal with unhandled exceptions in ASP.NET MVC.  By default, nothing is handled and users are shown ugly error stack traces.  With a bit of effort, and using some of the same configuration values that have always been available within ASP.NET, it is easy to set up much friendlier error pages.  If you need to be able to really customize the way errors are handled, you can override the HandleError attribute, or you can create a custom ViewResult that encapsulates the details of the exception and specifies how they should be displayed.

You can download the code for this article here.

View Entire Article

User Comments

Title: exception   
Name: how to remove an exception
Date: 2011-03-28 6:59:43 AM
am getting an exception Function or proceedure xyz has too many arguments..

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2020 ASPAlliance.com  |  Page Processed at 2020-02-19 5:25:55 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search