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>