In .NET, I am calling a rest service and getting an exception - 500 Internal Server Error
.
HttpWebResponse response = request.GetResponse() as HttpWebResponse
When I analyze this in Fiddler (in TextView), I am getting many details about the proper exception that caused the error.
In my exception object, I can't get this information in the InnerException
(it's null) nor in the Response
object itself.
Any ideas?
Try looking at the WebException.Response Property:
The "inner" exception is happening on the remote host. The WebException has a Response property which you can read to get the details.