I got this error when accessing an ashx file, wich returns some data to me. After trying to figure out what the problem is, I came to this solution.
It seems that .Net closes connections prior to it being finished. I think it's a bug in .net which concerns me.
Find a solution here : http://support.microsoft.com/default.aspx?scid=kb;EN-US;915599