ERR_CONNECTION_RESET
当我的 ASP.NET 服务器尝试回复错误时,我在 Chrome 中得到了一个。
通常我可以通过查看日志文件找到有关服务器错误的信息,但那里什么也没有。
在响应上运行调试器似乎表明一切正常,除了最后,Chrome 告诉我连接已重置。
这是处理异常处理的代码:
try
{
...
}
catch (ArgumentException e)
{
Response.StatusCode = 400;
Response.StatusDescription = e.Message;
return new ContentResult {Content = "" };
}
Chromenet::ERR_CONNECTION_RESET
在控制台中显示我。
使用 Fiddler,我收到错误消息[Fiddler] ReadResponse() failed: The server did not return a complete response for this request. Server returned 0 bytes.
如果我在 IIS 中启用失败的请求跟踪,并打开生成的 xml 文件
GENERAL_FLUSH_RESPONSE_END
BytesSent
0
ErrorCode
The parameter is incorrect.
(0x80070057)
我花了几个小时试图调试这个没有太多运气。