Skip to main content

Command Palette

Search for a command to run...

System.Web.HttpException: The client disconnected.

Updated
1 min read
System.Web.HttpException: The client disconnected.
F

Performance freak

You can ignore these exceptions.

The exception says what the problem is: "The client disconnected". It means that the client initiated a request but then disconnected before reading all of the responses. For example, the user closed the browser while the page was loading.

This is an issue at the client end. You can filter them out and ignore them.

An example of exception handling :

 if (ex.Message.StartsWith("The client disconnected")) { // Ignore }

More from this blog

A developer's diary

45 posts

Just developer