ASP.NET应用程序,用于处理来自单个进程的多个请求 [英] ASP.NET application to serve multiple requests from a single process

查看:184
本文介绍了ASP.NET应用程序,用于处理来自单个进程的多个请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在调试此问题。

I am currently debugging some issue about this.

我们有一个ASP.NET Web应用程序,我正在调试Cassini。当我尝试使用IE并将请求发送到服务器时,需要一段时间(例如大约20分钟)来处理然后发送响应。

We have a ASP.NET web application and I am debugging on Cassini. When I tried to use IE and send out the request to the server, some time (e.g. in about 20minutes) is needed to process and then send out the response.

在多标签IE的情况下,我试图在不同的标签中将请求几乎同时发送到同一台服务器,但响应仅在其中一个响应被发送出去。

In case of multi-tab IE, I tried to send out the requests in different tab at about the same time to the same server but the response is handled only after the one of the response is sent out.

如果启动IE的新实例并且在这些不同的实例中发出请求,则服务器可以处理并发送几乎同时响应。经过一番研究后我发现IIS express可以解决我的问题,但我不能。任何人都遇到类似的问题,或者我错过了一些非常重要的事情要先检查?

If a new instance of IE is started and the requests are sent out in these different instances, the server can process and send out the response almost simultaneously. After doing some research I found that IIS express may solve my problem, but I cannot. Anyone has experienced similar problem or have I missed out some really important things to check with first?

感谢您的帮助。

推荐答案

这主要是由于ASP.net的会话状态变量以及一次只有一个请求可能具有对特定会话的R / W访问权的事实(由SessionID cookie)。

This is primarily due to ASP.net's session state variable and the fact that only one request at a time may have R/W access to a particular session (as determined by the SessionID cookie).

任何需要任何形式的会话访问权限的其他请求(由于读/写是默认值)将被阻止,直到上一个请求完成为止。

Any additional requests requiring any form of session access (since Read/Write is the default) will be blocked until the previous request has been completed.

基于以下链接:

  • http://johnculviner.com/asp-net-concurrent-ajax-requests-and-session-state-blocking/
  • https://msdn.microsoft.com/en-us/library/ms178581.aspx?f=255&MSPPError=-2147217396

这篇关于ASP.NET应用程序,用于处理来自单个进程的多个请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆