Asp.net only allows uploading 4 m files by default?

Source: Internet
Author: User
It can be confirmed that the webconfig file is used for control. This is my configuration. First, I successfully uploaded a file larger than 6 MB.

<? XML version = "1.0" encoding = "UTF-8"?>
<Configuration>
<System. Web>
<Httpruntime maxrequestlength = "40000"/>
</System. Web>
</Configuration>

Before that, no " "Configuration file, the file to be uploaded 6 m should have a problem.

Maxrequestlength is the maximum number of bytes for uploading files.

When uploading large files, you can use ElementMaxrequestlengthAttribute to increase the maximum allowed file size. When the file size exceeds the specified size, a DNS error occurs in the browser. When uploading large files, you may also receive the following error message:

Aspnet_wp.exe (PID: 1520) is recycled because the memory consumption exceeds 460 MB (60 percent of available RAM ).

If this error message is returned, add an application.ProgramIn the Web. config file ElementMemorylimitAttribute Value.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.