Using .Net Core v1.1to create a service OData, it works fine with the browser, although it does not work when connecting from Excel 2016, as the main ODatafeed. The exception is
'InvalidOperationException' Media types not found in "Microsoft.AspNetCore.OData.Formatter.ODataOutputFormatter.SupportedMediaTypes". Add at least one media type to the list of supported media types.
Both Excel and browser connect to http: // localhost: 52315 / odata using the = 'GET method
HeaderAccept from browser:
"text/html, application/xhtml+xml, image/jxr, */*"
HeaderAccept from excel: (NOTE: I added new lines after ';' for reading)
"application/json;
odata.metadata=minimal;
q=1.0,application/json;
odata=minimalmetadata;
q=0.9,application/atomsvc+xml;
q=0.8,application/atom+xml;
q=0.8,application/xml;
q=0.7,text/plain;
q=0.7"
, , . , , .