Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IIS7 MaxAllowedContentLength

272 views
Skip to first unread message

Judy E

unread,
Dec 10, 2008, 11:09:01 AM12/10/08
to
I'm working on a website for a printing company that needs to receive
customer uploads of files up to 200MB. The server is running IIS 7 and
someone else administers it, but it's new to him also and he couldn't find
the answer so I'm checking here because I have TechNet Plus.
The error message I get says to change the value of the
MaxAllowedContentLength in the ApplicationHost.config. We have found that
file, but are not sure where to put the setting - there is nothing there
already. Also, we would like to be able to set it for one website only, not
all the websites on the machine.
Is this possible and how?
Thanks.

Trevor Benedict

unread,
Dec 10, 2008, 2:01:29 PM12/10/08
to
Type this in the command Prompt
appcmd set config /section:requestfiltering
/requestlimits.maxallowedcontentlength:209715200

Where 209715200 is 200mb in bytes

Regards,

Trevor Benedict
MCSD

"Judy E" <Ju...@discussions.microsoft.com> wrote in message
news:3BD06EDC-5D05-40B6...@microsoft.com...

Trevor Benedict

unread,
Dec 10, 2008, 2:05:56 PM12/10/08
to
and you said you don't want this as a system wide setting in which case you
can configure as show in this article
http://sdn5.sitecore.net/Scrapbook/IIS7%20and%20large%20files.aspx


"Trevor Benedict" <trevo...@gmail.com> wrote in message
news:Oz2Cbov...@TK2MSFTNGP06.phx.gbl...

Judy E

unread,
Dec 11, 2008, 11:33:11 AM12/11/08
to
On the link that you gave above, does all this need to be done in the
machine.config file:
< section name = "requestFiltering" overrideModeDefault = "Deny" />

With:

< section name = "requestFiltering" overrideModeDefault = "Allow" />

Note: the following settings should be corrected accordingly.

<!-- MEDIA - MAX SIZE IN DATABASE

The maximum allowed size of media intended to be stored in a
database (base64 blob).

This value must be less than the ASP.NET
httpRuntime.maxRequestLength setting.

Default value: 20MB

-->

<setting name="Media.MaxSizeInDatabase" value="20MB" />

<!-- MEDIA - MAX SIZE IN MEMORY

The maximum size of media to load into memory for processing
(rezising etc.).

Default value: 40MB

-->

<setting name="Media.MaxSizeInMemory" value="40MB" />

<!--

httpRuntime Attributes:

executionTimeout="[seconds]" - time in seconds before request is
automatically timed out

maxRequestLength="[KBytes]" - KBytes size of maximum request length
to accept

useFullyQualifiedRedirectUrl="[true|false]" - Fully qualifiy the URL
for client redirects

minFreeThreads="[count]" - minimum number of free thread to allow
execution of new requests

minLocalRequestFreeThreads="[count]" - minimum number of free thread
to allow execution of new local requests

appRequestQueueLimit="[count]" - maximum number of requests queued
for the application

If you change the maxRequestLength setting, you should also change
the Media.MaxSizeInDatabase setting.

Media.MaxSizeInDatabase should always be less than maxRequestLength.

-->

<httpRuntime maxRequestLength="16384" executionTimeout="600" />

vinay hardaha

unread,
Jan 20, 2011, 7:36:37 AM1/20/11
to
maxAllowedContentLength can be change form web.config file of webapplicaion .

as below
<system.webServer>
<security>
<requestFiltering>
<!-- limit post size to 10mb, query string to 256 chars, url to 1024 chars -->
<!--<requestLimits maxQueryString="256" maxUrl="1024" maxAllowedContentLength="3000000000" />-->
<requestLimits maxQueryString="256" maxUrl="1024" maxAllowedContentLength="80000000" />

</requestFiltering>
</security>
</system.webServer>


>> On Wednesday, December 10, 2008 2:01 PM Trevor Benedict wrote:

>> Type this in the command Prompt
>> appcmd set config /section:requestfiltering
>> /requestlimits.maxallowedcontentlength:209715200
>>
>> Where 209715200 is 200mb in bytes
>>
>> Regards,
>>
>> Trevor Benedict
>> MCSD


>>> On Wednesday, December 10, 2008 2:05 PM Trevor Benedict wrote:

>>> and you said you do not want this as a system wide setting in which case you


>>> can configure as show in this article
>>> http://sdn5.sitecore.net/Scrapbook/IIS7%20and%20large%20files.aspx


>>>> Submitted via EggHeadCafe
>>>> Twitter Search API with jQuery and JSONP
>>>> http://www.eggheadcafe.com/tutorials/aspnet/94d7bda5-c477-4ff9-b71d-e24e5fc70c24/twitter-search-api-with-jquery-and-jsonp.aspx

0 new messages