Setting uploadReadAheadSize in IIS 8.5

Jon.Mozley picture Jon.Mozley · Mar 6, 2014 · Viewed 30.6k times · Source

I'm trying to use the following command to set uploadReadAheadSize in IIS 8.5 on Windows Server 2012 R2:

appcmd.exe set config -section:system.webServer/serverRuntime/uploadReadAheadSize:"491521"  /commit:apphost

But I keep getting this error:

ERROR ( message:Can not set attribute "uploadReadAheadSize" to value "491521 ".. 
Reason: Not a valid unsigned integer . )

From this page the maximum should be 4GB so my integer is valid. (Admittedly this goes back to IIS 6.0 so not sure how relevant it is now.)

This page on the other hand suggests that the property may have been replaced/deprecated or something, but it's not clear from the error message or anything I can find on the Googles.

I'm no expert in IIS so there may be a simple/obvious answer to this, but I'd be grateful if anyone can share some more concrete info...

UPDATE: also posted in IIS forums

Answer

AlexB picture AlexB · Sep 28, 2015
  • Open IIS
  • Navigate under Default Web Site
  • Scroll down to Management and open Configuration Editor
  • Select following section (drop down at the top) system.webServer and expand it, then locate serverRuntime
  • you'll find there the current value of uploadReadAheadSize value, which you can change