locked
maxAllowedContentLength IIS 8.5 RRS feed

  • Question

  • User-538546386 posted

    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?

    <security>
    <requestFiltering >
    <requestLimits maxAllowedContentLength="2147483647">
    </requestLimits>
    </requestFiltering>
    </security>

    Thanks.

    Özgür

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

    Monday, February 24, 2014 4:41 AM

Answers

  • User-538546386 posted
    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.

    Thanks...

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Monday, February 24, 2014 6:49 AM

All replies

  • User-2064283741 posted

    Most IIS7 and 8 parameters are the same.

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

    Monday, February 24, 2014 5:24 AM
  • User-538546386 posted
    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.

    Thanks...

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Monday, February 24, 2014 6:49 AM