• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 911
  • Last Modified:

Trig to accomplish big file uploads in IIS 7

I have a web app that lives on a Windows 2008 server that is being served with IIS 7. I have been struggling with letting users upload files of 100 mb and higher. I ran appcmd.exe to modify the  maxAllowedContentLength property to 1073741824 which is 1 GB inbytes. I also modified my web.config with the entry below. After doing so I found that any users that access the website while vpn'd into to our network are able to perform uploads of 100mb and higher.

However, when users access the site out of network they still have problems. The site basically comes to a stalemate when trying to perform the upload and it eventually throws a dns or server error. Checking the event logs on the server still points to a file size issueas there are events that show "Maximum request length exceeded" and "Post size exceeded allowed limits" .

I am not sure why it would matter from where the website was being accessed if filesize was the issue.
(Although I could see how bytes going accross the wire could be an issue) Is there another setting related specifically to IIS 7 or Windows Server 2008 that I could be missing?  Any help or direction would be greatly appreciated.
<system.webServer> 
    <security> 
        <requestFiltering> 
                <requestLimits maxAllowedContentLength="1073741824" /> 
             </requestFiltering> 
    </security> 
</system.webServer

Open in new window

0
jazzcatone
Asked:
jazzcatone
  • 2
  • 2
  • 2
4 Solutions
 
James MurrellProduct SpecialistCommented:
During the upload process of large files, built-in ASP.NET loads the whole file in memory before the user can save the file to the disk. Therefore, the process may recycle because of the memoryLimit attribute of the processModel tag in the Machine.config file. More info you can find in Microsoft KB article: http://support.microsoft.com/default.aspx?scid=kb;EN-US;295626
0
 
jazzcatoneAuthor Commented:
The processModel tag doesn't seem  appear to exist in IIS 7 in the machine conig. Also unfortunately this is a .NET 2.0 app and your article only lists it as applying to Microsoft ASP.NET 1.1 and Microsoft ASP.NET 1.0. Is there a way to check and see if memory consumption is the issue in  IIS-7 ?? Also note there are actually a few configuration files in iis 7 (ApplicationHost.cofig, web.config, machine.config) Also not sur why it wld matter from a memory tandpoint if the user were in or out of network.
0
 
James MurrellProduct SpecialistCommented:
Microsoft recommends that you use a maximum file size in the range of 10 to 20 megabytes (MB). If you rarely upload files, the maximum file size may be 100 MB.

also have you read http://bloggingabout.net/blogs/ramon/archive/2009/03/13/how-to-enable-large-file-uploads-in-iis7.aspx 
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
meverestCommented:
Is it possible that the uploads are failing over VPN due to time-out of the request?  Perhaps file uploads take longer over VPN due to limited bandwidth, and are exceeding the allowed time for application pool or server timeout?

Cheers.
0
 
jazzcatoneAuthor Commented:
Users who are vpn'd in are infact able to do the uploads. It is the out of network users who have problems. However it seems to be isolated to bigger uploads for out of network users. Smaller filesizes seem to work out of networ as well.
0
 
meverestCommented:
Ahh, OK.

In that case, is the internal and external access via different web sites in the IIS admin?  Sometimes the inside (intranet) is set up as a different web site than from external, even though they may both point to the same physical web content.  If that is the case, then is it possible that you are modifying the maxAllowedContentLength only on one of those web sites?

Cheers,  Mike.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now