[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Download xml file - unable to read data from the transport connection

Asked by cp30 in .NET, Extensible Markup Language (XML)

Tags: VB.net, XML, download

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
[+][-]11/06/09 01:39 AM, ID: 25757792Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/06/09 01:52 AM, ID: 25757831Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/06/09 02:03 AM, ID: 25757869Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/06/09 02:34 AM, ID: 25757967Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/09/09 12:38 AM, ID: 25774180Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/19/09 03:03 AM, ID: 25859240Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625