HttpClient with BaseAddress
In the BaseAddress, just include the final slash: https://localhost:44302/AndonService.svc/. If you don’t, the final part of the path is discarded, because it’s not considered to be a “directory”. This sample code illustrates the difference: // No final slash var baseUri = new Uri(“https://localhost:44302/AndonService.svc”); var uri = new Uri(baseUri, “Layouts/1100-00277”); Console.WriteLine(uri); // Prints “https://localhost:44302/Layouts/1100-00277” // With … Read more