IIS 7.5 Mercurial setup ignoring maxAllowedContentLength

后端 未结 6 1349
长情又很酷
长情又很酷 2020-12-30 10:31

I\'m trying to setup Mercurial on IIS 7.5. I have a web.config for an application directory that is ignoring the maxAllowedContentLength attribute and I simply

6条回答
  •  [愿得一人]
    2020-12-30 11:28

    As explained in this rant, IIS 7.5 introduces a default setting for maxAllowedContentLength in Machine.config, which will apparently take precedence over whatever you specify in any Web.config.

    To fix this, open IIS Manager, click the server node, choose Configuration Editor, and expand system.webServer/security/requestFiltering and then change requestLimits/maxAllowedContentLength (which happens to default to 30000000 bytes). Remember to click Apply afterwards.

提交回复
热议问题