Server Error in '/' Application. 404 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: 404 Source Error: Line 44: else Line 45: { Line 46: throw new WebException(((int)response.StatusCode).ToString()); Line 47: } Line 48: }
private T GetResult<T>(HttpResponseMessage response) { if (response.IsSuccessStatusCode) // code 200 { var content = response.Content.ReadAsStringAsync().Result; return JsonConvert.DeserializeObject<T>(content); } else { throw new WebException(((int)response.StatusCode).ToString()); } }
404
401
403
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)