Tag Archives: HttpWebRequest

Unable to read data from the transport connection: The connection was closed

This is my second network error in 2 weeks. When trying to retrieve an image using a WebRequest I get the following error: Exception: System.IO.IOException Message: Unable to read data from the transport connection: The connection was closed. Source: System … Continue reading

Posted in c# | Tagged , , , , , , | 5 Comments

An existing connection was forcibly closed by the remote host

This error occured randomly in my project when I tried to read images from a HttpWebRequest. The exception is: Exception: System.IO.IOException Message: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Nested … Continue reading

Posted in .net, c#, General .NET | Tagged , , , , , | 12 Comments