Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsCanCan't Download Large File
Previous
 
Next
New Post
4/17/2007 5:49 PM
 

I have searched the forums for hours looking for a good solution to this problem.  I am running DotNetNuke 4.3.4 and am having issues downloading a zip file that is 185 MB.  I have other zip files that are 65MB that it has no problem with, but in particular this 185 MB file always gives a System.OutOfMemoryException.  I can't download it from the Filemanager either.  It is in a secured folder, but I don't think this is related to the problem.  The log for the error when trying to download the file from the FileManager is:

AssemblyVersion: 04.03.04
PortalID: 13
PortalName: Developer Network
UserID: 77
UserName: Samuel
ActiveTabID: 337
ActiveTabName: File Manager
RawURL: /Default.aspx?tabid=337&error=Could+not+find+file+'E%3a%5cWebs%5cDotNetNuke%5cPortals%5c13%5cDownloads%5cDeveloper%5cAltiris+7%5cAltirisSDK_021207.zip.resources'.&content=0
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://portals.altiris.com/Default.aspx?tabid=337&error=Could+not+find+file+'E%3a%5cWebs%5cDotNetNuke%5cPortals%5c13%5cDownloads%5cDeveloper%5cAltiris+7%5cAltirisSDK_021207.zip.resources'.&content=0
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: e3c59089-8f3f-4c23-adf0-f4f00d797bcc
InnerException: Exception of type 'System.OutOfMemoryException' was thrown.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.IO.BinaryReader.ReadBytes
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Exception of type 'System.OutOfMemoryException' was thrown. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.IO.BinaryReader.ReadBytes(Int32 count) at DotNetNuke.Common.Utilities.FileSystemUtils.DownloadFile(PortalSettings settings, Int32 FileId, Boolean ClientCache, Boolean ForceDownload) at DotNetNuke.Modules.Admin.FileSystem.FileManager.lnkDLFile_Command(Object sender, CommandEventArgs e) at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: ALID-DNN

I don't believe DNN 4.3.4 has compression or a whitespace filter (I've checked more than once) so I don't see how this can be the problem.  I can't find an executionTimeout in my webconfig if that matters.  Even if it did matter, the page load fails immediately so I don't believe its linked to any timeout.  A open file or save dialog never occurs.  If a normal user were to click on the download link he would see a page that would say:

Server Error in '/' Application

on it.  Its possible that too much caching is occuring and is being saved in memory rather than disk.  I am only an admin on the portal and do not have host priveledges.  I've spoken with the IS team who have host privleges and at the moment they are unwilling to budge on their host settings (including the caching settings).  Hopefully that is not the issue.  I will push again to have them change it.

If anyone has any ideas, I'm all ears.

 
New Post
4/17/2007 7:57 PM
 

There was a bug in the original code that handled file downloads, that I think would still have been present in DNN 4.3.4. - the file was being read into memory before being sent.  I think that's what would be causing your problem.

If you upgrade to DNN 4.4 (or 4.5),, I think it will fix the problem for you.


 
New Post
4/18/2007 10:27 AM
 

I can confirm Anthony's comment.  I had the same issue when i was running on 4.3.7 then I upgraded to 4.4.1 and the issue is resolved. 


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/18/2007 10:56 AM
 

I appreciate the quick feedback from both of you.  Unfortunately I'm not sure upgrading is a viable option with the IS team that hosts the portal.  There are multiple portals hosted and all are quite important so I'm not sure they can risk anything going haywire.  However, we found a temporary solution.  If I put a link to the file in an text/html module it seems to work.  So...  That might do the trick.  I HATE to do it that way though, especially since I don't believe that will work for protected files.  I'll pass the idea of upgrading by the IS team, but I'm sure it sadly won't amount to anything.  However, again thank you for the quick replies.  It has not gone unappreciated.

If  you have more ideas, I'm all ears.  Perhaps this will work itself out.  This morning I noticed that all the live portals were down.  I've no idea why, so we'll see.  The large file I said I couldn't download was previously downloadable.  I don't know if I mentioned that.  Its not that it never worked.  It worked for awhile, then all the sudden started throwing those outofmemory exceptions.  With the server down today I wonder if something was sucking all the memory until it crashed.  I've heard that the search engine can be responsible.  Perhaps it really was out of memory!!!  Hopefully we will reach the bottom of this very soon.

 
New Post
4/18/2007 1:06 PM
 

The IS Team got the server back up.  They just did a iisrestart so the problem may rear its ugly head in the future if they don't figure it out.  Also, I can now download that large file even though I've changed nothing.  This really supports the idea that it was low on memory, though that shouldn't matter.  As has been said, the later DNN versions don't store the entire file in memory while its being served.  Perhaps if I knew where that code was I could modify it to be like the current DNN versions.  I might be able to get away with that with the IS team.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsCanCan't Download Large File


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out