If
you open more than a few connections to the same website using
HttpWebRequest, then you'll likely get this misleading exception. You
can fix the problem by making sure you close your HTTP connections.
HttpWebRequest r = WebRequest.Create("http://xyz");
HttpWebResponse w = r.GetResponse()
... // << do stuff here
w.Close(); // << frees the connection
This was causing some fun debugging issues for me. Just needed to close my connection.

Wednesday, November 19 2008 at 2:12 PM |
Tags: Programming