Hi there,
I am trying to download an xml file from a url in a VB.net Windows Application. Unfortunately the URL is IP restricted so I cannot provide it for testing.
If I enter the URL in Firefox and submit it eventually loads the xml (about 14mb) and all looks good.
The problem is that I need to download automatically on a regular basis and whenever I try to I get "unable to read data from the transport connection" after it reads the first 1mb.
I have tried several ways to download the file in code (webClient.DownloadFile, XmlTextReader, HttpWebRequest) and all seem to fail around same point.
I download several other xml files as large from other sites and do not have a problem. I have reported to the company providing the xml but they say that if it loads in a browser then it's all working fine their end and must be my app (which is kind of logical)
Anyway, if any of you could help me out then I'd be very grateful if you manage to solve it!
Cheers
cp