title: Error with WebApi 2.0 RouteAttribute
body: <p>Here's my Global.asax</p>
  
  <pre><code>    protected void Application_Start()
      {
          RegisterRoutes();
      }
  
      private static void RegisterRoutes()
      {
          AreaRegistration.RegisterAllAreas();
  
          GlobalConfiguration.Configure(WebApiConfig.Register);
          FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
          RouteConfig.RegisterRoutes(RouteTable.Routes);
  
          GlobalConfiguration.Configure(x =&gt; x.MapHttpAttributeRoutes());
          GlobalConfiguration.Configuration.EnsureInitialized();
      }
  </code></pre>
  
  <p>Here's my Web Api controller</p>
  
  <pre><code>    [RoutePrefix("api/admin/users/")]
      public class UsersController : ApiController
      {
          [Route("get")]
          public IQueryable&lt;User&gt; GetUsers()
          {
              return db.Users;
          }
      }
  </code></pre>
  
  <p>And here's the error I get when I navigate to localhost:123/api/admin/users/get</p>
  
  <p><code>The object has not yet been initialized. Ensure that HttpConfiguration.EnsureInitialized() is called in the application's startup code after all other initialization code.</code></p>
  
  <p>I have no idea what I'm doing wrong here. I believe that I'm doing everything properly for the new WebApi 2.0 way, but I'm missing something.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Here's the stack in-case it helps</p>
  
  <pre><code>at System.Web.Http.Routing.RouteCollectionRoute.GetRouteData(String virtualPathRoot, HttpRequestMessage request) 
  at System.Web.Http.WebHost.Routing.HttpWebRoute.GetRouteData(HttpContextBase httpContext)
  </code></pre>