If you are using OData V4, replace using System.Web.Http.OData;
With using Microsoft.AspNet.OData;
(Please check the comments for the latest library)
in the ODataController works for me.
More Related Contents:
- Could not load file or assembly ‘System.Web.Http 4.0.0 after update from 2012 to 2013
- Adding a custom query backed Navigation Property to ODataConventionModelBuilder
- WCF vs ASP.NET Web API [closed]
- Best practice to return errors in ASP.NET Web API
- Single controller with multiple GET methods in ASP.NET Web API
- How to read request body in an asp.net core webapi controller?
- Why should I use IHttpActionResult instead of HttpResponseMessage?
- How to implement real time data for a web page
- Entity framework self referencing loop detected [duplicate]
- WebAPI StreamContent vs PushStreamContent
- 405 method not allowed Web API
- Routing with multiple Get methods in ASP.NET Web API
- ASP.NET WebApi: how to perform a multipart post with file upload using WebApi HttpClient
- How to throttle requests in a Web Api?
- Multiple Controller Types with same Route prefix ASP.NET Web Api
- Asp.net WEB API – What problems could arise if I use POST instead of PUT and DELETE?
- How to configure Swashbuckle to ignore property on model
- Put content in HttpResponseMessage object?
- Strings sent through Web API’s gets wrapped in quotes
- Return Json, but it includes backward slashes “\”, which I don’t want
- What’s the difference between WCF Web API and ASP.NET Web API
- Web Api Request Content is empty in action filter
- Web API – 405 – The requested resource does not support http method ‘PUT’
- ASP.NET Web API and [Serializable] class
- GlobalConfiguration.Configure() not present after Web API 2 and .NET 4.5.1 migration
- Best practice for error handling with ASP.NET Web API
- jQuery posts null instead of JSON to ASP.NET Web API
- How to extract custom header value in Web API message handler?
- Web API complex parameter properties are all null
- Request.Content.ReadAsMultipartAsync never returns