asp.net - 超出 session 的请求队列限制

标签 asp.net session .net-4.7.1

我在 ASP.NET 应用程序 NET 4.7.1 中有此错误。

超出 session 的请求队列限制。

满的:

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 中的默认行为已更改。 Retargeting guide suggests :

To restore the old behavior, you can add the following setting to your web.config file to opt-out of the new behavior.


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

改变行为的澄清:

In the .NET Framework 4.6.2 and earlier, ASP.NET executes requests with the same Sessionid sequentially and ASP.NET always issues the Sessionid through cookies by default. If a page takes a long time to respond, it will significantly degrade server performance just by pressing F5 on the browser. In the fix, we added a counter to track the queued requests and terminate the requests when they exceed a specified limit. The default value is 50. If the limit is reached, a warning will be logged in the event log, and an HTTP 500 response may be recorded in the IIS log.



此处也有地址:https://knowledgebase.progress.com/articles/Article/The-request-queue-limit-of-the-session-is-exceeded-in-sitefinity-11-2

关于asp.net - 超出 session 的请求队列限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59938410/

相关文章:

c# - 在 ASP.NET 5 (MVC 6) 中使用 session

php - 本地化 Laravel

session 变量在 Grails 中不起作用

c# - RichTextBox 从文本中删除转义字符

c# - .NET 框架中的 Span<T> 和流

javascript - PostBackUrl="javascript :void(0); restrict postback of all controls on the page

c# - 如何将在代码隐藏中创建的控件放置在页面上?

c# - 如何处理同时用于桌面和 Web 的库中的静态变量?

c# - 如何使用 SQL 将表中的多个 ID 与 INNER JOIN 结合使用?