My .NET 3.5 application sporadically throws the following exception System.Web exception:
The client disconnected
Why is this exception occurring? My application is running on a load balanced Windows Server 2003 IIS 6.0 server.
My .NET 3.5 application sporadically throws the following exception System.Web exception:
The client disconnected
Why is this exception occurring? My application is running on a load balanced Windows Server 2003 IIS 6.0 server.
Also check out this answer on a similar question. There is no web farm in that case.
Credit to Russell Clarvoe
attempt to fix by chunking the viewstate into multiple fields using maxPageStateFieldLength in the web.config:
If you are using Telerik components, get rid of RadCompression module.
The vbdork.net domain seems to now be defunct. In searching on this error, I found several references to this article. So I found a google cached version of it and am now posting it here for reference. The original URL was: http://vbdork.net/post/2009/02/10/The-client-disconnected.aspx
Other likely causes: You're using controls that do not support Ajax in reality. Ajax is supposed to be able to handle async requests, but some controls don't work, such as the telerik (ajax) treeview. (Awaiting the telerik internet police to come censor this bad publicity, as usual.)
Perhaps because the "client disconnected"...
Closed browser, navigating to a new page, tired of waiting for the app to load...
In all seriousness, check out this page for a lot of information on that problem.
In summary it's happening because the browser is initiating a new request that bounces to the second server while the first server is processing the original request. His advice is to simply ignore it.
My advice would be to figure out why your load balancer isn't keeping the client tacked to the same server on subsequent requests; also called "Sticky" sessions.