Request.GetConfiguration().GetODataPathHandler() is returning null. This is probably because we are not calling SetODataPathHandler when creating the default path handler.<br /><br />Scenario: Link generation like below..<br /><br />response.Headers.Location = new Uri(Url.ODataLink(Request.GetConfiguration().GetODataPathHandler(),<br /> new EntitySetPathSegment("Products"), new KeyValuePathSegment(addedProduct.ID.ToString())));
↧