< DOCTYPE html PUBLIC -WCDTD XHTML StrictEN httpwwwworgTRxhtmlDTDxhtml-strictdtd> 上载大文件时,可使用 <httpRuntime> 元素的 maxRequestLength 属性来增加文件大小的最大允许值。当文件超出指定的大小时,浏览器中会产生 DNS 错误。上载大文件时,还可能会收到以下错误信息:

aspnet_wp.exe (PID: 1520) 被回收,因为内存消耗超过了 460 MB(可用 RAM 的百分之 60)。

如果遇到此错误信息,请增加应用程序的 Web.config 文件的 <processModel> 元素中 memoryLimit 属性的值。

修改web.config文件

<configuration>

    <system.web>

       <httpRuntime>

<httpRuntime useFullyQualifiedRedirectUrl="true|false"

              maxRequestLength="size in kbytes"

              executionTimeout="seconds"

              minFreeThreads="number of threads"

              minFreeLocalRequestFreeThreads="number of threads"

              appRequestQueueLimit="number of requests"

              versionHeader="version string"/> ​​#c#专栏​