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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Upload/Download timing outUpload/Download timing out
Previous
 
Next
New Post
9/23/2008 11:26 AM
 

When using various modules or the file manager, whenever I try to upload or download a file, the server resets with the message:

"Cannot download file...." "The connection with the server was reset."

It usually happens within about 30 seconds of starting the download. I've tried changing all the ASP "Limits Properties" to high values in IIS, and the problem still persists. I'm running IIS7. Any ideas?

Thanks,
Robert

 
New Post
9/23/2008 11:36 AM
 

You probably need to update your web.config file to increase executionTimeout (the time an asp.net page can run for) and the maxRequestLength value (the maximum size of a file in kb, the default is 4096=4MB) i.e. the following says to give a script 10 minutes to try to upload files up to 10MB (10240)

 <httpRuntime  executionTimeout="600"
                               useFullyQualifiedRedirectUrl="true"
                               maxRequestLength="10240"
                               requestLengthDiskThreshold="10240" />


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/24/2008 2:37 PM
 

I tried implementing that. Here is the exact line I'm using in my web.config file. It's still timing out after about 15 seconds. The file is only 4.5 megs :-(

 

    <!-- allow large file uploads -->
    <httpRuntime useFullyQualifiedRedirectUrl="true" executionTimeout="6000" maxRequestLength="50192" requestLengthDiskThreshold="50192" />
    <httpCookies httpOnlyCookies="true" requireSSL="false" domain="" />
 

Robert

 
New Post
9/24/2008 3:47 PM
 

I was able to solve part of the issue with a little more digging. Here's what happened...

While looking at the web logs, I noticed that the following error was showing up a lot.

A worker process with process id of '3856' serving application pool 'sitename.com' has requested a recycle because it reached its virtual memory limit.

So I tried to download the file again, and noticed that it was the file download that was causing the memory maximum to be reached. I had the site set to auto-recycle whenever the virtual memory reaches 200 MB, and somehow it's breaking that limit. So I told it to only auto-recycle when the physical memory max is reached (150 MB) and the downloads started working immediately! However, is it normal for a DNN portal to consume 200+ megs of virtual memory?? At any given time, there's only 2 or 3 people browsing the site. There's nothing fancy on the site, just pictures, text, and PDF downloads.

Robert

 
New Post
9/24/2008 4:05 PM
 

no, that seems very large to me - i have a copy of 4.9 running locally, with the aspnetstorefront application (complicated multimodule ecommerce solution), and it only consumes 70MB. Please make sure that you're not running in debug mode, and that you don't have a load of unused modules installed. if you've written you own modules you'll want to profile them for memory leaks.

Finally, i'm assuming you're using asp.net 2.0, in which case uploads stream to disk, not memory (as in 1.1) so large files should not affect memory as much. Theres a few additional notes on large file uploads @ http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx worth reading


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Upload/Download timing outUpload/Download timing out


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