Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Customizing max ASP upload size in IIS

Posted on 2011-03-25
6
Medium Priority
?
661 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 6

Accepted Solution

by:
worthyking1 earned 2000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

661 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