Friday, August 12, 2016

HttpConfiguration does not contain a definition for EnableQuerySupport

I was recently attempting to add OData support to my ASP.NET Web API application when I encountered the following error message:



My friend then pointed me to this StackOverflow forum posting: http://stackoverflow.com/questions/27860997/where-does-webapi-2-2-odata-v4-enablequery-apply

This changed how to use the EnableQuery attribute globally in my WebApiConfig.cs file as follows:


No comments:

Post a Comment