WebAPI and ODataController return 406 Not Acceptable

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.

Leave a Comment