从 VS2008 网站调试 IIS 时无响应
我有一个 Web 应用程序在 IIS 7.5 的本地实例中运行。我的应用程序池的最大工作进程数为 3。当我转到 Vs2008 并将调试器附加到本地 IIS 时,我看到了预期的三个 w3wp.exe 进程。我依附于这三个。当我运行网页时,正如预期的那样,我的断点在后面的代码中命中。
问题是:在我的 C# 代码背后的代码中,正在调用另一台计算机上的服务,该服务又将请求发送回我的本地 IIS 框。这都是同步的。问题是,当我在调试器中时,远程代码对我的 IIS 框的调用似乎立即失败。如果我在调试时继续访问该远程盒子并尝试从本地盒子中提取任何 URL,它就会挂起。而且,当我在 VS2008 中按下 F5 时,浏览器就会释放并满足请求。
那么为什么 VS2008 调试器会导致 IIS 不使用任何其他工作进程来服务其他传入请求呢?
感谢您的任何想法。
I have a web app running in a local instance of IIS 7.5. My app pool has it Maximum Worker PROCESSES at 3. When I go to Vs2008 and attach my debugger to my local IIS I see three w3wp.exe processes as expected. I attach to all three. When I run a web page my breakpoint hits in my code behind, as expected.
Here's the problem: in my code behind my C# code is calling a service on another computer that in turn sends a request back to my local IIS box. This is all synchronous. The problem is that while I'm in the debugger it seems like that remote code's call to my IIS box is immediately failing. If I go on to that remote box while I'm debugging and try to pull up any URL from my local box it hangs. And, as soon as I hit F5 in VS2008 the browser frees up and fulfills the request.
So why does the VS2008 debugger cause IIS to not use any of the other worker processes to service other incomming requests?
Thanks for any ideas.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您调试任何进程时 - 所有线程都会挂起。
所以你所描述的是预期的行为。您正在 IIS 中调试一个线程,整个进程会挂起,直到您按 F5 并将控制权返回给该进程。
While you debugging any process - all the threads hangs.
So what you're describing is expected behavior. You're debugging a thread in IIS, the whole process hangs until you press F5 and return the control to the process.