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: