Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Documents Modul...  Can't Download Large File
Previous Previous
 
Next Next
New Post 4/17/2007 2:49 PM
User is offline Samuel
7 posts
10th Ranked


Can't Download Large File 

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 4:57 PM
User is offline Anthony Glenwright
551 posts
www.inventua.com
8th Ranked






Re: Can't Download Large File 

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 7:27 AM
User is offline Mitch Sellers
5566 posts
www.mitchelsellers.com
3rd Ranked




Re: Can't Download Large File 

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
MCITP, MCPD, MCTS
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 Consulting Quotes, and DNN Technical Support Services

I reccomend 3Essentials for shared hosting and BaseCamp for project management
 
New Post 4/18/2007 7:56 AM
User is offline Samuel
7 posts
10th Ranked


Re: Can't Download Large File 

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 10:06 AM
User is offline Samuel
7 posts
10th Ranked


Re: Can't Download Large File 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Documents Modul...  Can't Download Large File
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Efficion Consulting
A premier DotNetNuke consulting firm providing complete DNN services including: custom module development, skinning and design, installation and integration services.
www.efficionconsulting.com
DotNetNuke Training by Engage Software
Specializing in customized training, architecture and module solutions for large scale implementations lead by DNN Core Team Member Christopher Hammond.
engagesoftware.com
Smart-Thinker
DNN Modules for Social Networks for as low as $69 for 6 modules! We also maintain the DotNetNuke Directory - http://DNNDir.com
www.smart-thinker.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP