How does ASP. NET upload large files ??

Source: Internet
Author: User

Web. config
<Httpruntime maxrequestlength = "10000000" executiontimeout = "3600"/>

Set the maximum size of files that can be uploaded
Open at % SystemRoot % \ microsoft In a text editor. net \ framework \ v1.1.4322 \ config machine. in the config file, locate the How can an ASP net user obtain higher permissions to write to the file system?
Open the machine. config file in % SystemRoot % \ microsoft. Net \ framework \ v1.1.4322 \ config in the text editor, find the <processmodel> section, and set username = "system ".

When uploading a large file, you may 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 the value of the memorylimit attribute in the element of the web. config file of the application. For example:

<Configuration>
<System. Web>
<Processmodel memorylimit = "80"/>
</System. Web>
</Configuration>

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.