Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Client Disconnected

I am often getting a Client Disconnected message. I don't use load balancing - only a single IIS server. I need to know what is causing this and how to fix it.

Here is the exception info:

Type: System.Web.HttpException
Message: The client disconnected.

Exception Data: 

Source: System.Web

TargetSite: Void ThrowError(System.Exception, System.String, System.String, Boolean)

StackTrace: 
   at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError)
   at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
   at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState)
   at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState)
   at System.Web.UI.HiddenFieldPageStatePersister.Load()
   at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
   at System.Web.UI.Page.LoadAllState()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
like image 343
Bob Jones Avatar asked Jun 10 '09 22:06

Bob Jones


People also ask

What is client disconnect?

The "client disconnected" error may occur when it took too much time to process a current request to the server. If an application is hosted in a cloud (clustered) environment, make sure that you specified the machineKey element in the web. config file of your application.

What does disconnected mean in Roblox?

Roblox gives its message that it lost connection when it doesn't get a response from the game servers after a certain length of time. It's the equivalent of the “your Internet connection is unstable” message on a Zoom call.


1 Answers

WE get this exception as well, and we get it in a completely repeatable way. This exception is thrown when the ViewState has become "large" and the user clicks a button before a previous request has completed...

In our case this happens very easily because the post back is using ajax, so the browser doesn't stop responding while the ViewState is being sent to the server. Clicking on this control causes the exception over and over again.

like image 122
Russell Clarvoe Avatar answered Sep 22 '22 05:09

Russell Clarvoe