have spent a number of hours trying to get the most simple scenario working of connecting the client to an odata V4 service using the same service and also my local Odata service and the client just refuses to connect. I keep getting the session.Adapter exception below in the 'session' variable of the client.
What am i missing??
var client = new ODataClient("http://packages.nuget.org/v1/FeedService.svc/");
var packages = client .FindEntriesAsync("Packages?$filter=Title eq 'Simple.OData.Client'");
Adapter = 'odataClient._session.Adapter' threw an exception of type 'System.InvalidOperationException'
Well, as suggested in the comments, i used Fiddler and the requested url isn't odata v4, but v1 ( the line with comments). I posted the response here
I guess that would be one of the mistakes ;)