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,, 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);
                        String.Format("attachment; filename=\"{0}\"", Path.GetFileName(metadata.FileName)));
                    Response.Expires = 0;
                    Response.Buffer = true;
                        + "\\" + Path.GetFileName(metadata.FileName)));

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kumaraswamy RCommented:

In the web.config file - add

<httpRuntime maxRequestLength="51200" />


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

Note : 51200/1024 Kb= MB
RNGAdminAuthor 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.
>>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.)
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

RNGAdminAuthor Commented:
i did all that. no luck. any other ideas?
Just to confirm...this user can use a different browser and it's only when this user uses IE7 that it doesn't work?
RNGAdminAuthor 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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.