为什么在上传的时候,其他页面很慢或者打不开?
Why in upload time, other pages were be slow or can not be open?
我在 web.config 上将此代码用于上传页面的 RequstLength:
<location path="Upload.aspx">
<system.web>
<httpRuntime executionTimeout="60000" maxRequestLength="1572864" requestPathInvalidCharacters="" requestValidationMode="2.0" relaxedUrlToFileSystemMapping="true" enableVersionHeader="false"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1610612736"/>
</requestFiltering>
</security>
</system.webServer>
</location>
当我在上传时打开网站页面时,页面打不开,直到上传完成。
我该如何解决这个问题?
它与我发送文件上传的请求页面的 enableSessionState 有关。
当我在 @page 指令级别将它用作 enableSessionState="ReadOnly" 时,它解决了。
https://forums.asp.net/t/2105020.aspx?Why+in+upload+time+other+pages+were+be+slow+or+can+not+be+open+
我在 web.config 上将此代码用于上传页面的 RequstLength:
<location path="Upload.aspx">
<system.web>
<httpRuntime executionTimeout="60000" maxRequestLength="1572864" requestPathInvalidCharacters="" requestValidationMode="2.0" relaxedUrlToFileSystemMapping="true" enableVersionHeader="false"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1610612736"/>
</requestFiltering>
</security>
</system.webServer>
</location>
当我在上传时打开网站页面时,页面打不开,直到上传完成。 我该如何解决这个问题?
它与我发送文件上传的请求页面的 enableSessionState 有关。 当我在 @page 指令级别将它用作 enableSessionState="ReadOnly" 时,它解决了。 https://forums.asp.net/t/2105020.aspx?Why+in+upload+time+other+pages+were+be+slow+or+can+not+be+open+