title: API route not found
body: <p>I have an API in my code with a route prefix but when I try to hit it, I get a 404. This is my code:</p>
  
  <pre><code>namespace MyProject.Authentication.Controllers
  {
      [RoutePrefix("api/user")]
      public class MyUserController : ApiController
      {
          private readonly IMyDomainService _myDomainService;
  
          public MyUserController()
          {
              _myDomainService = new MyDomainService();
          }
  
          [HttpGet]
          [HttpRoute("get/test")]
          public HttpResponseMessage Test()
          {
              return Request.CreateResponse(HttpStatusCode.OK, "test success");
          }
      }
  }
  </code></pre>
  
  <p>when I try to hit mysite.com/api/user/get/test I get a 404. </p>
  
  <p>I checked AttributeRoutingHttpConfig.cs and this is what looks like, same as I have in other projects where the APIs work fine:</p>
  
  <pre><code>public static class AttributeRoutingHttpConfig
  {
      public static void RegisterRoutes(HttpRouteCollection routes)
      {
          // See http://github.com/mccalltd/AttributeRouting/wiki for more options.
          // To debug routes locally using the built in ASP.NET development server, go to /routes.axd
  
          routes.MapHttpAttributeRoutes();
      }
  
      public static void Start()
      {
          RegisterRoutes(GlobalConfiguration.Configuration.Routes);
      }
  }
  </code></pre>
  
  <p>edit: this is in ASP.NET 4.5</p>