I've got a web service that returns an http 500 with some diagnostic information in the body of the response.
I'm doing something like
Stream responseStream = null; WebResponse _Response = null; Stream responseStream = null; HttpWebRequest _Request = null; try { _Response = _Request.GetResponse(); responseStream = _Response.GetResponseStream(); } catch { //try to view the Request.GetResponse() body here. } Since _Request.GetResponse() is returning an http 500 there doesn't seem to be a way to view the response body. According to HTTP 500 Response with Body? this was a known issue in Java 9 years ago. I'm wondering if there's a way to do it in .NET today.