public async Task GetKeyData(string key){ string dataKey = string.Empty; var requestUri = string.Format("{0}/{1}", _KeyUri, key); HttpClient client = new HttpClient(new HttpClientHandler() { UseDefaultCredentials = true }); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); var rawData = await client.GetAsync(requestUri); // below line are getting error when i call from api A to this var jsonResponse = await rawData.Content.ReadAsStringAsync();//error showing here string value = JsonConvert.DeserializeObject(jsonResponse); //balance code }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)