Asp.net

超出會話的請求隊列限制

  • January 27, 2020

我在 ASP.NET 應用程序 NET 4.7.1 中有此錯誤。

超出會話的請求隊列限制。

滿的:

System.Web.HttpException (0x80004005): The request queue limit of the session is exceeded.
at System.Web.SessionState.SessionStateModule.QueueRef()
at System.Web.SessionState.SessionStateModule.PollLockedSession()
at System.Web.SessionState.SessionStateModule.GetSessionStateItem()
at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)

有什麼建議 ?

.NET 4.7 中的預設行為已更改。重定向指南建議

要恢復舊行為,您可以將以下設置添加到 web.config 文件以選擇退出新行為。

<appSettings>
 <add key="aspnet:RequestQueueLimitPerSession" value="2147483647"/>
</appSettings>

澄清改變的行為:

在 .NET Framework 4.6.2 及更早版本中,ASP.NET 順序執行具有相同 Sessionid 的請求,並且預設情況下,ASP.NET 始終通過 cookie 發出 Sessionid。如果一個頁面需要很長時間才能響應,只需在瀏覽器上按 F5 就會顯著降低伺服器性能。在修復中,我們添加了一個計數器來跟踪排隊的請求並在請求超過指定限制時終止請求。預設值為 50。如果達到限制,將在事件日誌中記錄警告,並且可能會在 IIS 日誌中記錄 HTTP 500 響應。

也在這裡解決:https ://knowledgebase.progress.com/articles/Article/The-request-queue-limit-of-the-session-is-exceeded-in-sitefinity-11-2

引用自:https://stackoverflow.com/questions/59938410