Greetings. I'm an using the Network.DownloadFile() function to download a XML file from the web. The file downloads fine from my development machine, but when a customer of mine tries to do it (from a different network) it fails the very first time. However, if the user tries to download the file again, it works that time and every time afterwards.
Does anyone know what might be causing this problem? I noticed that the DownloadFile() function errors out the 1st time the app runs, but then works every time afterwards. It the app is stopped and then restarted, it errors out again the 1st time and then works afterwards.
The customer is getting a Time Out error message.
Here is the code I'm using:
(txmed)
Does anyone know what might be causing this problem? I noticed that the DownloadFile() function errors out the 1st time the app runs, but then works every time afterwards. It the app is stopped and then restarted, it errors out again the 1st time and then works afterwards.
The customer is getting a Time Out error message.
Here is the code I'm using:
Code:
My.Computer.Network.DownloadFile("[URL unfurl="true"]http://www.mysite.com/test.xml",[/URL] "C:\test.xml", "", "", False, 500, True)
(txmed)