Customizing max ASP upload size in IIS


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?
Who is Participating?
worthyking1Connect With a Mentor Commented:
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"

As far as I know there is no way to do this programmatically on the fly.
Peddu_bhanuAuthor Commented:
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?
Peddu_bhanuAuthor Commented:

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?

The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Yes it will.
Peddu_bhanuAuthor Commented:
thank you
Peddu_bhanuAuthor Commented:
I have now implemented the change, thanks for the help.
All Courses

From novice to tech pro — start learning today.