Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Updater/Downloader Not Work Online?

Updater/Downloader Not Work Online?

Scheduled Pinned Locked Moved C#
helpcsharpcomsysadminquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abydosgater
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • A Abydosgater

      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

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      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)

      A 1 Reply Last reply
      0
      • L leppie

        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)

        A Offline
        A Offline
        Abydosgater
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups