This error occurs in the web API attribute routing script. The API attribute routing will check all ODataRouteAttributes for all ODataControllers found when starting the HttpConfiguration initializer.
You mentioned that the error occurred after you added a new model / object, so maybe you have two Edm models:
ModelA, ModelB
And EntitySet "Clients" are in only one of the models, for example ModelA.
In addition, you may have the following codes for the newly added model:
config.MapODataServiceRoute("...", "...", ModelB);
When launched, the web API finds the attribute:
[ODataRoute("Customers")] public IHttpActionResult Get() { ... }
but the Web API cannot find the Customers object installed in ModelB.
I think you can fix this by putting everything in one model.
source share