gpt4 book ai didi

ASP.NET 4.5 页面和偶尔的 err_ssl_protocol_error

转载 作者:太空宇宙 更新时间:2023-11-03 15:00:18 28 4
gpt4 key购买 nike

WinServer 2012信息系统 8ASP.NET 4.5

我注意到,在使用 IE11 时,某个特定页面会间歇性地加载失败。它只是说“无法显示此页面”。如果我使用 F12 开发工具,网络跟踪显示带有 200 响应的请求,但响应主体只是在页面中间突然结束。

当我在 Chrome 中加载页面时,同一页面间歇性地出现问题。然而,Chrome 显示该请求的 net::err_ssl_protocol_error。 Chrome 还显示字节数约为页面内容的 1/2。

我运行了 SSLDiag Web 服务器上的工具,并将所有 SSL 证书报告为良好/无错误。

网站上的其他所有页面(据我所知)都可以正常工作。其他页面是 ASP.NET 和 MVC 的混合,其他页面都没有这个问题。

与此相关的是事件查看器中的一个条目(如下)。您会注意到它以显式刷新结束。我没有调用 Flush 的代码,但我确实关闭了缓冲,因此它必须是内部 ASP.NET 刷新。但是 flush(另一端没有客户端)如何导致 Chrome 报告 SSL 协议(protocol)错误?

Event code: 3005 
Event message: An unhandled exception has occurred.
Event time: 4/23/2014 12:27:31 PM
Event time (UTC): 4/23/2014 7:27:31 PM
Event ID: fca4a66e73bf46adb3215dcdb88a0b82
Event sequence: 1159
Event occurrence: 19
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/10/ROOT-1-130427523426870110
Trust level: Full
Application Virtual Path: /
Application Path: D:\inetpub\wwwroot\MySite\
Machine name: EBIDEVW4

Process information:
Process ID: 5028
Process name: w3wp.exe
Account name: MyCompany\MySiteUser

Exception information:
Exception type: HttpException
Exception message: The remote host closed the connection. The error code is 0x800704CD.
at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)
at System.Web.HttpWriter.Write(String s)
at System.Web.UI.HtmlTextWriter.RenderBeginTag(HtmlTextWriterTag tagKey)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.WebControls.Table.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at ASP.rpt_jobs_aspx.__RenderForm1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at ASP.rpt_jobs_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



Request information:
Request URL: https://customdomain.mycompany.com:443/rpt/jobs.aspx
Request path: /rpt/jobs.aspx
User host address: 10.10.1.25
User: myuser
Is authenticated: True
Authentication Type: Forms
Thread account name: MyCompany\MySiteUser

Thread information:
Thread ID: 10
Thread account name: MyCompany\MySiteUser
Is impersonating: False
Stack trace: at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)
at System.Web.HttpWriter.Write(String s)
at System.Web.UI.HtmlTextWriter.RenderBeginTag(HtmlTextWriterTag tagKey)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.WebControls.Table.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at ASP.rpt_jobs_aspx.__RenderForm1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at ASP.rpt_jobs_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

更新:我不太关心让 远程主机关闭连接。错误代码为 0x800704CD。 如果用户确实在中途关闭了连接,则服务器会出现异常。我的顾虑和问题是,为什么在 chrome 中出现 ssl 协议(protocol)错误,而在 chrome 和 IE 中出现断断续续的响应,而似乎没有什么可以阻止请求?

最佳答案

它也发生在我们的一些网站上。我注意到的是,它们中的大多数都是爬虫。

当爬虫请求页面时,不等待服务器响应就关闭连接或在发送请求中途关闭连接时抛出异常。

类似地,当用户请求页面并关闭浏览器或网络掉线时也会发生这种情况。

据我所知,对于 The remote host closed the connection 异常,您无能为力。

如果需要,您可能希望在 void Application_Error(object sender, EventArgs e) 中忽略此类错误。

关于ASP.NET 4.5 页面和偶尔的 err_ssl_protocol_error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23255207/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com