maxAllowedContentLength IIS 8.5 [Answered]RSS

2 replies

Last post Feb 24, 2014 06:49 AM by oakdemirci

  • maxAllowedContentLength IIS 8.5

    Feb 24, 2014 04:41 AM|oakdemirci|LINK

    I could not find references about IIS 8.5.

    I have a WCF service using "basic authentication", I can upload upto 400 mb files with ssl. I have a Certificate Authority and generate certs for clients. Whenever I add clientCredentialType="Certificate" attribute I got "The remote server returned an error: (413) Request Entity Too Large." error.

    I googled and add <serverRuntime uploadReadAheadSize="2147483647" />to web.config file. This time I get 500.19 error.

    Setting maxAllowedContentLength seems the solution for this, but I can not find a reference. Is IIS 7 reference still applicable for this attr?

    <requestFiltering >
    <requestLimits maxAllowedContentLength="2147483647">



    Update: <serverRuntime uploadReadAheadSize="2147483647" /> is not permitted I think. How can I set uploadReadAheadSize in 8.5.

  • Rovastar Rovastar

    5469 Posts



    Re: maxAllowedContentLength IIS 8.5

    Feb 24, 2014 05:24 AM|Rovastar|LINK

    Most IIS7 and 8 parameters are the same.

    As a wild guess to see if this works for your application, have you tried it?!

    Troubleshoot IIS in style
  • Re: maxAllowedContentLength IIS 8.5

    Feb 24, 2014 06:49 AM|oakdemirci|LINK

    1. Launch "Internet Information Services (IIS) Manager"
    2. Expand the Server field
    3. Expand Sites
    4. Select the site you want to make the modification for.
    5. In the Features section, double click "Configuration Editor"
    6. Under "Section" select: system.webServer>serverRuntime
    7. Modify the "uploadReadAheadSize" section
    8. Click Apply

    Using web.config didnot work, but the instructions above worked.