title: Exception filter not working in web api
body: <p>I have a custom exception filter capable handle all the errors in the controller( just a common error handling mechanism) ,</p>
  
  <pre><code>public class ExceptionHandlingAttribute : ExceptionFilterAttribute
      {
          public override void OnException(HttpActionExecutedContext actionExecutedContext)
          {
              var error = actionExecutedContext.Exception;
              if (error is BussinessExcetion)
              {
                  var exceptionBase = (BussinessExcetion)error;
                  var code = (HttpStatusCode)exceptionBase.HttpExceptionCode;
                  throw new HttpResponseException(new HttpResponseMessage(code)
                                                      {
                                                          Content = new StringContent(exceptionBase.Message),
                                                          ReasonPhrase = "Exception"
  
                                                          ,
                                                      });
  
              }
  
              // Now log the error
  
              /* Error logging */
  
              LoggingFactory.GetLogger().LogError(string.Format("Exception:{0} ||Stack trace:{1}", error.Message, error.StackTrace), error);
  
  
  
              throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)
                                                  {
                                                      Content = new StringContent("An error occurred, contact the support team."),
                                                      ReasonPhrase = "Critical Exception"
                                                  });
          }
      }
  </code></pre>
  
  <p>I registered this filter in  fillterConfig file </p>
  
  <pre><code> public static void RegisterGlobalFilters(GlobalFilterCollection filters)
      {
          filters.Add(new ExceptionHandlingAttribute());
       filters.Add(new HandleErrorAttribute());
  
      }
  </code></pre>
  
  <p>but i am getting an error </p>
  
  <p><strong>The given filter instance must implement one or more of the following filter interfaces: IAuthorizationFilter, IActionFilter, IResultFilter, IExceptionFilter</strong></p>
  
  <p>I know the  ExceptionFilterAttribute  already implimented IExceptionFilter filter. Why i am getting this error</p>