[GH-ISSUE #1] the specified network name is no longer available Exception with HttpListener #3

Closed
opened 2026-02-25 22:30:29 +03:00 by kerem · 0 comments
Owner

Originally created by @EslaMx7 on GitHub (Feb 13, 2014).
Original GitHub issue: https://github.com/EslaMx7/ScreenTask/issues/1

Originally assigned to: @EslaMx7 on GitHub.

"the specified network name is no longer available" Exception with HttpListner.


this actually happens when the client close the connection and the server still writing to the output stream.

the only effective solution is to surround the writing operation with Try/Catch block and ignore the exception.

PST : httpListner.IgnoreWriteExceptions = true; // Seems Had No Effect :(

Originally created by @EslaMx7 on GitHub (Feb 13, 2014). Original GitHub issue: https://github.com/EslaMx7/ScreenTask/issues/1 Originally assigned to: @EslaMx7 on GitHub. > ### "the specified network name is no longer available" Exception with HttpListner. > --- > > this actually happens when the client close the connection and the server still writing to the output stream. > > > the only effective solution is to surround the writing operation with Try/Catch block and ignore the exception. > > PST : httpListner.IgnoreWriteExceptions = true; // Seems Had No Effect :(
kerem 2026-02-25 22:30:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenTask#3
No description provided.