Solved

Customizing max ASP upload size in IIS

Posted on 2011-03-25
6
655 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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