Problems downloading large files

RNGAdmin
RNGAdmin used Ask the Experts™
on
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

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi

In the web.config file - add


<httpRuntime maxRequestLength="51200" />

Or

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

Note : 51200/1024 Kb= MB

Author

Commented:
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.
Top Expert 2007

Commented:
>>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.)
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Author

Commented:
i did all that. no luck. any other ideas?
Top Expert 2007

Commented:
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?
Commented:
The issue had been resolved. But to answer your question user could not use any browser apparently not just IE7. She mentioned IE7 but testing it in Firefox and IE8 didn't work as well. Just for her. We obviously tested it internally in all browsers and it was working fine. While troubleshooting it I noticed errors in our app log
-------------------------------------------
Exception: System.AccessViolationException
Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
-------------------------------------------
I reinstalled .net framework on the server. Second thing was that I changed Response.WriteFile to Response.TransmitFile. One of those 2 things fixed the problem.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial