XML fails to load when using proxy
<p>I am having some trouble reading an RSS feed by using a webproxy. Considder the following code:</p>

<pre><code>WebClient wc = new WebClient();
//Use proxy if set
if (ProxyAddress != "")
{
    WebProxy wp = new WebProxy(ProxyAddress, ProxyPort);
    wp.Credentials = new NetworkCredential(ProxyUsername,ProxyPassword);
    wc.Proxy = wp;
}

MemoryStream ms = new MemoryStream(wc.DownloadData(rssUrl));
XmlTextReader rdr = new XmlTextReader(ms);
rssDoc = new XmlDocument();
rssDoc.Load(rdr);
</code></pre>

<p>If no proxy is set it works just fine but when I set the proxy it will often (not always) read only part of the XML. I suspect its due to the proxy connection being slow. If I use the proxy with IE to leisurely browse the web or eveb the same RSS feed it never fails.</p>

<p>I am truely lost here does anyone have a solution or explanations as to why this happens?</p>

<p>Thanks,</p>

<p>Rudolf</p>
