If you’re working in a project contains both MVC and WebAPI assembilies, could you check what’s the namespace your ActionFilterAttribute’s namespace. It’s fairly confusing cause there are two ActionFilterAttributes under both:
- WebAPI: System.Web.Http.Filters
- MVC: System.Web.Http.Mvc