Solved

Customizing max ASP upload size in IIS

Posted on 2011-03-25
6
651 Views
Last Modified: 2012-05-11
Hi,

We host multiple web applications on a shared web server, and due to the AspMaxRequestEntityAllowed value set to 1.5 MB one customer needs to allow image uploads to a greater size. I understand the concerns involved however, I know the property is at the web service level.

Is there any way I can restrict this property to a single app or can the customer can script this in his source code?
0
Comment
Question by:Peddu_bhanu
  • 4
  • 2
6 Comments
 
LVL 6

Accepted Solution

by:
worthyking1 earned 500 total points
ID: 35222181
Yes you can set it individually per website by editing the value in the IIS metabase.

Do the following:

1. Open c:\windows\system32\inetsrv\MetaBase.xml in notepad
2. Find the website you want to change.
3. Add the new AspMaxRequestEntityAllowed value to that website.
4. I would recommend also setting the AspBufferingLimitt to match
5. Save and do an IISReset

Here's how it might look for the website in question (in the metabase xml file)...

<IIsWebServer      Location ="/LM/W3SVC/938724321"
            AspBufferingLimit="30400800"
            AspMaxRequestEntityAllowed="30400800"
            AuthFlags="0"
            LogPluginClsid="{FF160663-DE82-11CF-BC0A-EE00006111E0}"
            ServerAutoStart="TRUE"
            ServerBindings="50.63.148.126:80:www.TheDomainName.com
                  50.63.148.126:80:TheDomainName.com
            ServerComment="TheDomainName.com"
      >
</IIsWebServer>

As far as I know there is no way to do this programmatically on the fly.
0
 
LVL 1

Author Comment

by:Peddu_bhanu
ID: 35222414
I will implement this and let you know. However, is it possible to allow a week's time for me to accept this as a solution?
0
 
LVL 1

Author Comment

by:Peddu_bhanu
ID: 35322571
Hi,

I will be modifying the metabase.xml, before that I have a question.

The value for AspMaxRequestEntityAllowed property is currently set to '1572864' (which is the default at the web service level).
Will defining the variable at the web application level override the server level value?


Thanks
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 6

Expert Comment

by:worthyking1
ID: 35326174
Yes it will.
0
 
LVL 1

Author Comment

by:Peddu_bhanu
ID: 35326228
thank you
0
 
LVL 1

Author Comment

by:Peddu_bhanu
ID: 35339550
I have now implemented the change, thanks for the help.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IIS Authorization for Web Service 2 46
IIS 8 works fine locally but not over the network 2 17
Time Conversions...both ways 2 15
alert(innerHTML); 8 14
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question