This project is read-only.
1
Vote

Downloading Greater than 1Gb files not working

description

Download the URL: http://download.microsoft.com/download/8/1/d/81d3f35e-fa03-485b-953b-ff952e402520/VS2008ProEdition90dayTrialENUX1435622.iso from Dot Net Download Manager
 
This file(Greater than 1Gb) is downloading for some time and then not responding...

file attachments

comments

rusvald wrote Jun 10, 2015 at 10:11 AM

Hi, if somebody need to fix this trouble too, I has found solution.

Remove cast to integer type in The .NET Downloader\MyDownloader.Extension\Protocols\HttpProtocolProvider.cs file, lines 66, 70.

You must have this in result.
public virtual Stream CreateStream(ResourceLocation rl, long initialPosition, long endPosition)
        {
            HttpWebRequest request = (HttpWebRequest)GetRequest(rl);

            FillCredentials(request, rl);

            if (initialPosition != 0)
            {
                if (endPosition == 0)
                {
                    request.AddRange(initialPosition);
                }
                else
                {
                    request.AddRange(initialPosition, endPosition);
                }
            }

            WebResponse response = request.GetResponse();
            
            return response.GetResponseStream();
        }