无法获得实际错误以响应REST请求.Fiddler向我显示了更多错误详细信息.在.NET中,我得到的只是500-内部服务器错误 [英] Can't get actual error in response for REST request. Fiddler shows me more error details. In .NET all I get is 500 - Internal Server Error
本文介绍了无法获得实际错误以响应REST请求.Fiddler向我显示了更多错误详细信息.在.NET中,我得到的只是500-内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在.NET中,我正在调用Rest服务并收到异常- 500 Internal Server Error
.
In .NET, I am calling a rest service and getting an exception - 500 Internal Server Error
.
HttpWebResponse response = request.GetResponse() as HttpWebResponse
当我在Fiddler(在TextView中)分析此问题时,我得到了许多有关导致错误的适当异常的详细信息.
When I analyze this in Fiddler (in TextView), I am getting many details about the proper exception that caused the error.
在我的异常对象中,无法在 InnerException
(它为空)或 Response
对象本身中获取此信息.
In my exception object, I can't get this information in the InnerException
(it's null) nor in the Response
object itself.
有什么想法吗?
推荐答案
查看全文