Nov 14, 2017 02:30 PM|mgebhard|LINK
There is not enough information in the code snippet to guess at a solution. Consider posting all the relevant code and describing the design intention.
Is this an ASP Core app? Web API 2 and Owin? Are you trying to make a remote connection to the API or is the API and caller on the same system? Can you post the startup code and client code?