How to increase the upload limit for ASP in the Windows 2008 server with IIS 7/7.5?

Sometimes when we need to upload using the web interface on an ASP-based website, we must ensure that we set the upload limit or can set the 'Maximum Requesting Entity Body Limit' for that particular domain to some value upto which only we can allow an upload on the server.
Upto this limit only can the user upload the file/image or anything from the web interface.

Below are the steps using which we can set the upload limit:-

Step 1: Open the IIS Manager on the server.
Step 2: Select your domain under 'Sites' and double click on the domain name.
Step 3: After this, the domain settings section will be shown there with the IIS section in it.
Step 4: Under the IIS section, double-click on ASP and then you can see ASP properties.
Step 5: In the ASP settings, find the 'Limits Properties' section and expand it by clicking on the + sign in start.
Step 6: In the 'Limits Properties' we can see the 'Maximum Requesting Entity Body Limit' which is for the upload limit via ASP and can see the value for it in bytes which is set currently.
Step 7: For example, to set that limit to 20 MB we use the value in bytes as "20971520". Then again double click on the value and paste the value of 20 MB in bytes as 20971520 and then click on the APPLY changes option which we can see on the top right side corner for that domain.

That's it. Now the changes will be applied.

Sachin Tuesday 15 October 2013 - 12:52 am | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.