0

i am trying to upload a file with filesize 80M bytes. on my pc ( cassini server) i can upload the file. On the webserver (iis 6) it throws an error?:

404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

this is what i have in my web.config:

  <system.web><httpRuntime maxRequestLength="716800"/></system.web>

1 Answer 1

1

Try below configuration setting:

    <system.webServer>
        <security>
            <requestFiltering>
                <!-- 50 * 1024 * 1024 = 52428800 -->
                <requestLimits maxAllowedContentLength="52428800"/>
            </requestFiltering>
        </security>
    </system.webServer>     
Sign up to request clarification or add additional context in comments.

2 Comments

That's for 50Mb only? OP needs 80Mb.
Replace with 83886080 (80 * 1024 * 1024 = 83886080)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.