什么可能导致“客户端断开连接”的ASP.NET异常?

前端之家收集整理的这篇文章主要介绍了什么可能导致“客户端断开连接”的ASP.NET异常?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的.NET 3.5应用程序偶尔会抛出以下异常System.Web异常:

The client disconnected

任何想法为什么这种例外发生?我的应用程序运行在负载平衡的Windows Server 2003 IIS 6.0服务器上。

解决方法

vbdork.net域似乎现在已经失效。在搜索这个错误,我发现几个引用这篇文章。所以我找到一个google缓存版本的它,我现在发布它在这里参考。原始网址为: http://vbdork.net/post/2009/02/10/The-client-disconnected.aspx

You get the message The client Disconnected.

You’re likely to sporadically get this error message if you’re in a web farm and you have a page where the user can make multiple selections,it typically happens in this scenario:

The user selects a drop down list Box that has an event on postback,but the user does this again before the request is sent back to the user,the user is now creating a second event that is being fired on the other webserver,the prevIoUs webserver tries to return the results of the old event to the user but the user is no longer there because the user is now on the other webserver.

The user will never see an error,but if you’re catching the errors and emailing/logging them you’ll see them like shown below and be totally frustrated. Don’t worry about it,just ignore it it’s not even an problem,as long as you’re trapping this kind of error nothing will go wrong.

06000

原文链接:https://www.f2er.com/aspnet/254107.html

猜你在找的asp.Net相关文章