You have to be sure your code uses the ActionFilterAttribute
from the System.Web.Http.Filters
namespace and not the one from System.Web.Mvc
.
So please check that you have
using System.Web.Http.Filters;
More Related Contents:
- .NET HttpClient. How to POST string value?
- Adding Http Headers to HttpClient
- Make sure that the controller has a parameterless public constructor error
- FromBody string parameter is giving null
- JSON.NET Parser *seems* to be double serializing my objects
- Deserialising JSON to derived types in Asp.Net Web API
- How to set up a Web API controller for multipart/form-data
- Custom method names in ASP.NET Web API
- Asp Net Web API 2.1 get client IP address
- Difference between MVC 5 Project and Web Api Project
- Enable CORS in Web API 2
- How can Xml Documentation for Web Api include documentation from beyond the main project?
- How to put conditional Required Attribute into class property to work with WEB API?
- Reading FromUri and FromBody at the same time
- Call and consume Web API in winform using C#.net
- HttpContext.Current is null when unit test
- Return HTML from ASP.NET Web API
- Get IPrincipal from OAuth Bearer Token in OWIN
- Using WebSockets with ASP.NET Web API
- MVC Attribute Routing Not Working
- Web Api – Fire and Forget
- How to prevent a single object property from being converted to a DateTime when it is a string
- HTTP PUT not allowed in ASP.NET Web API
- Error handling (Sending ex.Message to the client)
- Async WebApi Thread.CurrentCulture
- How do you implement an async action delegate method?
- How to add and get Header values in WebApi
- Web API in MVC solution in separate project
- Is there a way in Json.NET serialization to distinguish between “null because not present” and “null because null”?
- What is the difference between DependencyResolver.SetResolver and HttpConfiguration.DependencyResolver in WebAPI