Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any size limit for a request that can be handled by IIS? How to disable or increase that limit?

I read somewhere that this limit is 16K, but i am not sure about that or how to disable it.

share|improve this question

migrated from Nov 28 '11 at 15:54

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

You can't disable it but you can override it in your web.config. It is set in the machine.config that get's shared between all of your files.

share|improve this answer
Can you post a sample plz? – Rafael Colucci Nov 28 '11 at 15:49
Is that what i need to do? <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="1000000" /> </requestFiltering> </security> – Rafael Colucci Nov 28 '11 at 15:50
hi yeah that sounds about right. You use something diff for older .net with httpruntime. Sorry I didn't put an example I was going to then had meeting. – Dave Walker Nov 28 '11 at 16:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.