I am not able to connect to Organization service even with I have used correct credentials in CRM dynamics - C# I am able to login from dynamics crm site with same credential. I am using Microsoft.crm.SDK version 9 and also getting response code 200 with HttpClient as shown below.
using (var client = new HttpClient())
{
client.BaseAddress = new Uri(webApiUrl);
client.DefaultRequestHeaders.Authorization = authHeader;
var response = client.GetAsync("WhoAmI").Result;
}
BUT the problem is with Organization service, It is giving me message security exception. Can you please help me with this, I have tried many solutions from internet but not succeed. Please find attached photos for exception detail, and feel free if you need more information.