This project is read-only.

HandleErrorAttribute does not work in version 1.4

Topics: Core, Customizing Orchard, Troubleshooting
Mar 29, 2012 at 11:12 AM
Edited Mar 29, 2012 at 11:14 AM


In the previous version I have implemented a custom HandleErrorAttribute. After upgrade to version 1.4 it stopped working. 

Could someone help me to resolve this issue?

Apr 18, 2012 at 11:33 AM

I'm facing the same problem. HandleErrorAttribute doesn't work in Orchard 1.4.

Apr 18, 2012 at 6:57 PM

Please file a bug explaining the issue in details and with repro steps. Thanks.

May 2, 2012 at 5:29 PM
Edited May 3, 2012 at 8:24 AM

We found out why a custom HandleErrorAttribute doesn't work. It turns out that there is a class called UnhandledExceptionFilter and this class implements IActionFilter rather than IExceptionFilter. Since HandleErrorAttribute is an exception filter and exception filters are executed after action filters the HandleErrorAttribute will never come into play. Moreover as you can see none of the exception filters will be executed.

What is the point of implementing IActionFilter rather than IExceptionFilter? Were there any reasons for that solution?

I will appreciate your help with this situation.