Hi @Jay Vijay Modi ,
What version of OData are you using?
FOR OData V3:
Install Microsoft.AspNet.WebApi.OData
Add using System.Web.Http.OData.Builder; and using System.Web.Http.OData.Extensions;
use like config.Routes.MapODataServiceRoute(...)
FOR OData V4:
Install Microsoft.AspNet.OData
Add using System.Web.OData.Builder; and using System.Web.OData.Extensions;
use like config.MapODataServiceRoute(...)
You can refer to this article:https://stackoverflow.com/questions/27224702/config-mapodataserviceroute-error
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
ChaoDeng