Link to home
Start Free TrialLog in
Avatar of RNGAdmin
RNGAdmin

asked on

Problems downloading large files

One of my users can't download over 5 MB files (ppt). Smaller files are fine. I've tested all IE browsers and Firefox and it works. User uses IE7. It's a local issue obviously specific to that particular user.

Server environment: IIS 7, asp.net, framework 2.0. Any ideas how i can troubleshoot it?
protected void Page_Load(object sender, EventArgs e)
{
...
if (metadata != null)
{
                    Response.ContentType = FileExtUtils.GetMimeType(metadata.FileExt);
                    Response.AppendHeader("Content-Disposition", 
                        String.Format("attachment; filename=\"{0}\"", Path.GetFileName(metadata.FileName)));
                    Response.Expires = 0;
                    Response.Buffer = true;
                    Response.Clear();
                    Response.WriteFile(VirtualPathUtility.ToAppRelative(AppMembers.GetBinaryVirtualPath()
                        + "\\" + Path.GetFileName(metadata.FileName)));
                    HttpContext.Current.ApplicationInstance.CompleteRequest();
}
 
}

Open in new window

Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Hi

In the web.config file - add


<httpRuntime maxRequestLength="51200" />

Or

<httpRuntime executionTimeout="999999" maxRequestLength="51200" />

Note : 51200/1024 Kb= MB
Avatar of RNGAdmin
RNGAdmin

ASKER

rkworlds, thanks for quick response! Correct me if i am wrong but as far as i know maxRequestLength is for uploads, not downloads and designed to prevent DOS attacks. My user has issues downloading files.
>>It's a local issue obviously specific to that particular user.

So if this particular user uses FireFox, it works? it's only IE7 that is "broken"?
If it's that specific to one user and one browser...have you done the usual PC maintenance?
(Clear out the browser cache, empty recycle bin, defrag, etc.)
i did all that. no luck. any other ideas?
Just to confirm...this user can use a different browser and it works...it's only when this user uses IE7 that it doesn't work?
ASKER CERTIFIED SOLUTION
Avatar of RNGAdmin
RNGAdmin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial