Problems downloading large files

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/31/2007 6:15:03 PM
Gravatar
Total Posts 80

Problems downloading large files

I'm having problems downloading large files from the shared files module. I just switched from IIS 5 to IIS 6 on a Win2003 server. I have no problems uploading a file (i uploaded a 450MB file). I can download a file up to about 60MB in size and then I get the following errors when trying to download larger files (not that I don't even see a "save as" dialog so the download doesn't start on the client side):

IE6: No save as dialog is displayed. IE show the "The page cannot be displayed" page.
IE7: No save as dialog is displayed. IE show the "Internet Explorer cannot display the webpage" page.
Firefox2: No save dialog is displayed. Firefox shows the "The connection was reset. The connection to the server was reset while the page was loading."

IIS httperr.log shows:

2007-01-31 22:06:53 111.111.111.111 4676 11.111.111.111 443 HTTP/1.1 GET /secure/SharedFilesDownload.aspx?pageid=14&fileid=65&mid=15 - 1 Connection_Dropped ASP.NET_2.0_Pool

There is nothing relevant in the Event Viewer.

While I try to download a file I notice the w3wp.exe process on the server increases its memory usage quite a bit. So, in SharedFilesDownload I changed Response.WriteFile() to Response.TransmitFile() which is not supposed to buffer a file in memory but I am still seeing the memory spikes.

I've look all over google but haven't encountered any good solutions. Everyone seems to recommend using Response.TransmitFile().

Thoughts?

Jesse
1/31/2007 6:43:39 PM
Gravatar
Total Posts 80

Re: Problems downloading large files

This appears to solve the problem...so far:

Page.Response.Buffer = false;
Page.Response.BufferOutput = false;
Page.Response.TransmitFile(downloadPath);

But I am still seeing the w3wp.exe process increase memory usage temporarily between user clicking download link in shared files module and the "Save as" dialog opening. Also, it takes a while for the "Save as" dialog to open.

-Jesse
2/6/2007 3:35:46 PM
Gravatar
Total Posts 18439

Re: Problems downloading large files

Hi Jesse,

Sorry, got side tracked on other things and didn't keep up with this thread. These changes will be in svn branches/2.x shortly.

Thanks,

Joe
You must sign in to post in the forums. This thread is closed to new posts.