Error Handling

There are 1 entries for the tag Error Handling

ASP.NET MVC Error Handling

When working with the latest MVC release (Preview 2) I was having trouble working with the Application_Error event in global.asax. While this does work if you want to redirect to an html file, if you want to redirect to an aspx file you need to use the Controller.OnActionExecuted method. Here's an example: protected override void OnActionExecuted(FilterExecutedContext filterContext) { if (filterContext.Exception != null) { ...

 

 

Copyright © Mark J. Miller