我正在尝试使用以下命令在Windows Server 2012 R2上的IIS 8.5中设置uploadReadAheadSize:
appcmd.exe set config -section:system.webServer/serverRuntime/uploadReadAheadSize:"491521" /commit:apphost
Run Code Online (Sandbox Code Playgroud)
但我一直收到这个错误:
ERROR ( message:Can not set attribute "uploadReadAheadSize" to value "491521 "..
Reason: Not a valid unsigned integer . )
Run Code Online (Sandbox Code Playgroud)
从这个页面最大值应该是4GB所以我的整数是有效的.(不可否认,这可以追溯到IIS 6.0,所以不确定它现在有多相关.)
另一方面,此页面表明该属性可能已被替换/弃用或其他内容,但从错误消息或我可以在Google上找到的任何内容中都不清楚.
我不是IIS的专家,所以可能有一个简单/明显的答案,但如果有人能分享更具体的信息,我将不胜感激......
更新:也发布在IIS论坛