简体   繁体   中英

cant upload file because of file size in asp.net mvc 2?

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>

Try below configuration setting:

    <system.webServer>
        <security>
            <requestFiltering>
                <!-- 50 * 1024 * 1024 = 52428800 -->
                <requestLimits maxAllowedContentLength="52428800"/>
            </requestFiltering>
        </security>
    </system.webServer>     

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM