Solved

Customizing max ASP upload size in IIS

Posted on 2011-03-25
6
647 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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
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

Suggested Solutions

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
A short film showing how OnPage and Connectwise integration works.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

930 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

14 Experts available now in Live!

Get 1:1 Help Now