Error downloading files larger than 2GB only on Azure VMs RRS feed

  • Question

  • Hi Microsoft

    I have a problem downloading files larger than 2GB - but only on Azure Virtual Machines.

    You can find my code here: https://pastebin.com/RYRRQdSB (note: the link will expire on the 17/1/2019)

    The problem is that when i download files from my FTP server, it works perfectly - except when running it on an Azure Virtual Machine, where it gives an error after about 2 GB (specifically after 1.970.104.320 bytes)

    The exception is: "The underlying connection was closed: An unexpected error occurred on a receive."

    ... although my guess is that the problem is memory related.

    The program is compiled as 64 bit by the way :)

    Best regards


    Thursday, January 3, 2019 11:14 AM

All replies

  • Perhaps the following is of assistance


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Thursday, January 3, 2019 12:01 PM
  • Hi MartinBIWISE,

    Is there any update? do you see the link that Kareninstructor mentioned, if the issue still exists, please feel free let us know.

    Best regards,

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, January 16, 2019 3:06 AM