title: Asp.net Web API: No action was found on the controller
body: <p>So this has really been causing me a headache. </p>
  
  <p>Route:</p>
  
  <pre><code>            config.routes.MapHttpRoute(
              name: 'ControllerAction' ,
              routeTemplate: "api/{controller}/{action}"
          );
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public class LookupsController : ApiControllerBase
  {
      [ActionName("all")]
      public Lookups GetLookups()
      {
          var lookups = new Lookups
          {
              Customers = GetCustomers().ToList(),
              //add more
          };
          return lookups;
      }
  
  }
  </code></pre>
  
  <p>but whenver I try to hit the uri: /api/lookups/all
  I get a 404 error saying:</p>
  
  <p>"No action was found on the controller 'Lookups' that matches the name 'all'."</p>
  
  <p>Any help would be appreciated</p>
  
  <p>EDIT:
  So I figured it out finally. 
  it was because of the wrong depency. 
  VS2012 autoresolved the action to system.web.mvc.actionnameattribute while what I needed was system.web.http.actionnameattribute. </p>
  
  <p>weird problem, anyways, I hope this helps someone else. </p>