You can subclass HandleErrorAttribute
and override its OnException
member (no need to copy) so that it logs the exception with ELMAH and only if the base implementation handles it.
چگونگی استفاده از Elmah در Asp.net MVC به همراه ثبت خطا در حالت تست
301, MovedPermanently