ASP.NET开发服务器的并发处理不起作用 [英] ASP.NET Development Server concurrent processing doesn't work

查看:199
本文介绍了ASP.NET开发服务器的并发处理不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出为什么ASP.NET开发服务器不处理请求的并发。

I'm trying to find out why ASP.NET Development Server is not processing the requests concurrently.

所以,我创建了一个简单的aspx页面有以下code:

So I've created a simple aspx page with the following code:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

System.Threading.Thread.Sleep(10000)

End Sub

如果我打开网页的两倍,反应需要20秒。这意味着,服务器执行的请求一一(不兼)。

If I open the page two times, the response takes 20 seconds. That means, the server executes requests one by one (not concurrently).

以下建议href="http://stackoverflow.com/questions/7931901/is-visual-studio-asp-net-development-server-really-multi-threaded">this话题,我已经添加了的EnableSessionState =假的网页,但似乎并没有帮助。

Following advice provided in this topic, I've added EnableSessionState="false" to the page, but that doesn't seem to help.

任何想法如何使请求并发处理的?

Any ideas how to make the requests process concurrently?

推荐答案

在asp.net开发服务器(卡西尼)不能处理多个线程。所以它有效地处理请求一次一个。打开会话关闭真的不会影响到这一点。

The asp.net dev server (cassini) cannot handle multiple threads. So it effectively processes requests one at a time. Turning session off really won't impact this.

这真的只是一个web应用程序有限的单用户测试。

It's really just for limited single user testing of a web app.

我建议你倾倒卡西尼和安装IIS前preSS或者只是去到完整的IIS执行。

I'd recommend you dump cassini and install IIS Express or just go to the full IIS implementation.

一个小阅读:<一href="http://stackoverflow.com/questions/3261144/asp-net-dev-server-cassini-iis-ex$p$pss-and-multiple-threads">ASP.NET开发服务器(卡西尼),IIS防爆preSS和多线程

这篇关于ASP.NET开发服务器的并发处理不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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