Solved

Customizing max ASP upload size in IIS

Posted on 2011-03-25
6
642 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now