Updater/Downloader Not Work Online?
-
Hey Guys, I have an interesting bug. I have read articles on this site and others, helping me to code an update for my application.. A seperate application that runs and checks for updates, if there are updates downloads them. It works by a base64 settings file, with little information, connects to a server and opens a Files.txt which has a list of files to download. It then loops through these files an downloads them. It works like a charm when i use http://localhost for a server. Loops through all of the file. The issue is when i change the address to my live webserver.. or any other then localhost, it downloads the first file and then freezes =[. Im still relatively new to all this so i was wondering if someone could please take a look at my code an point me in the right direction? You can see the code at: http://pastebin.com/f7f70d01d[^] Or you can download the project at: http://reconnetworks.net/AbydosUpdater.rar You will notice that it is the line 121: strResponse = wcDownload.OpenRead(FileURL); That it freezes on. Please could someone help me.. I would be forever great full. I have been trying to fix this for nearly 2 weeks now but cant figure it out. It works fine on localhost but once online it doesnt work.. downloads first file and stalls. Please help. Thanks for your time in reading. Andy
-
Hey Guys, I have an interesting bug. I have read articles on this site and others, helping me to code an update for my application.. A seperate application that runs and checks for updates, if there are updates downloads them. It works by a base64 settings file, with little information, connects to a server and opens a Files.txt which has a list of files to download. It then loops through these files an downloads them. It works like a charm when i use http://localhost for a server. Loops through all of the file. The issue is when i change the address to my live webserver.. or any other then localhost, it downloads the first file and then freezes =[. Im still relatively new to all this so i was wondering if someone could please take a look at my code an point me in the right direction? You can see the code at: http://pastebin.com/f7f70d01d[^] Or you can download the project at: http://reconnetworks.net/AbydosUpdater.rar You will notice that it is the line 121: strResponse = wcDownload.OpenRead(FileURL); That it freezes on. Please could someone help me.. I would be forever great full. I have been trying to fix this for nearly 2 weeks now but cant figure it out. It works fine on localhost but once online it doesnt work.. downloads first file and stalls. Please help. Thanks for your time in reading. Andy
-
Just how big are the files? You sure you are not just waiting for the request to complete?
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)The files are only small empty classes in a dll file for testing and text files.. As i said it downloads the first file and then freezes. If you run it from in the debug folder (You can delete the exe and then recompile if you prefer.. I know i like to be safe) You can see it just downloads the first file and stops. You can see that as soon as the download of the first file finishes.. the foreach loop finishes causing the "Finished" Messagebox. But i have previously tested.. the array of files has 2 files. a Document.rtf and Document2.rtf to download..and it knows this. But after first file it stops. I have no idea why. Could any of you please help?