Can someone clarify for me this situation:
- We make request for example Home\Index;
- In Global asax we have Application_AuthorizeRequest
- Application_AuthorizeRequest throw exception
We have Application_Error which catch it and return new View
IController controller = new ErrorController(); //routedata is ok controller.Execute(new RequestContext(new HttpContextWrapper(Context), routeData));
Action with Error is executed (it's OK)
- But then MVC or ASP pipeline still try to execute Home\Index, how can I make pipeline forget about request?
As far as I understand mvc it's HttpHandler, how can I make sure that my action with error is a last step in all this chain?