title: OData routes return 404 Not Found
body: <p>I've started including OData in my WebAPi2 project (currently hosted in IIS8 Express on my dev machine). My OData config class looks like this:</p>
  
  <pre><code>public class ODataConfig
  {
      private readonly ODataConventionModelBuilder modelBuilder;
  
      public ODataConfig()
      {
          modelBuilder = new ODataConventionModelBuilder();
  
          modelBuilder.EntitySet&lt;Category&gt;("Category");
      }
  
      public IEdmModel GetEdmModel()
      {
          return modelBuilder.GetEdmModel();
      }
  }
  </code></pre>
  
  <p>Then I added the following in my WebApiConfig class:</p>
  
  <pre><code>ODataConfig odataConfig = new ODataConfig();
  
  config.MapODataServiceRoute(
      routeName: "ODataRoute",
      routePrefix: "MyServer/OData",
      model: odataConfig.GetEdmModel(),
      defaultHandler: sessionHandler
  );
  </code></pre>
  
  <p>And started with a basic controller and just one action, like this:</p>
  
  <pre><code>public class CategoryController : ODataController
  {
      [HttpGet]
      public IHttpActionResult Get([FromODataUri] int key)
      {
          var entity = categoryService.Get(key);
          if (entity == null)
              return NotFound();
  
          return Ok(entity);
      }
  }
  </code></pre>
  
  <p>Then, in my HttpClient, the request url looks like this:
      MyServer/OData/Category(10)</p>
  
  <p>However, I'm getting the following error:</p>
  
  <pre><code>{"Message":"No HTTP resource was found that matches the request URI 'http://localhost/MyServer/OData/Category(10)'.","MessageDetail":"No type was found that matches the controller named 'OData'."}
  </code></pre>
  
  <p>What am I missing here?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>If I set the routePrefix to null or 'odata' and change my request url accordingly, the request works fine. So this means that I can't have a route prefix like 'myServer/odata'.</p>
  
  <p>Is this OData standard naming convention? And if yes, can it be overridden?</p>