【发布时间】:2017-01-23 00:02:44
【问题描述】:
当我的 ASP.NET 服务器尝试回复错误时,我在 Chrome 中收到 ERR_CONNECTION_RESET。
通常我可以通过查看日志文件找到有关服务器错误的信息,但那里什么也没有。
在响应上运行调试器似乎显示一切正常,除了最后,Chrome 告诉我连接已重置。
这是处理异常处理的代码:
try
{
...
}
catch (ArgumentException e)
{
Response.StatusCode = 400;
Response.StatusDescription = e.Message;
return new ContentResult {Content = "" };
}
Chrome 在控制台中显示net::ERR_CONNECTION_RESET。
使用 Fiddler,我收到错误消息 [Fiddler] ReadResponse() failed: The server did not return a complete response for this request. Server returned 0 bytes.
如果我在IIS中Enable Failed Request Tracing,并打开生成的xml文件
GENERAL_FLUSH_RESPONSE_END
BytesSent
0
ErrorCode
The parameter is incorrect.
(0x80070057)
我花了几个小时试图调试它,但运气不佳。
【问题讨论】:
标签: c# asp.net google-chrome iis-10