调试错误——附加到 w3wp.exe 时出错

发布于 2024-08-15 07:09:07 字数 269 浏览 1 评论 0原文

我正在使用 VSTS 2008 + .Net 3.5 + C#。我为 IIS 7.0 开发了一个自定义表单身份验证模块,并附加到 w3wp.exe 来调试该模块。在附加过程中(我只是选择“工具”->“附加到进程”,在我正在调试的计算机上没有执行进一步的操作 - 我只是等待附加完成),我遇到了以下错误,任何想法是什么错误的?

正在调试的 Web 服务器进程已被 Internet 信息服务 (IIS) 终止。通过在 IIS 中配置应用程序池 ping 设置可以避免这种情况。请参阅帮助了解更多详细信息。

I am using VSTS 2008 + .Net 3.5 + C#. And I developed a custom Forms authentication module for IIS 7.0 and I attach to w3wp.exe to debug this module. During the attach process (I just select Tools -> Attach to Process, no further operation performed on the computer I am debugging -- I just wait for the attach to be completed), I met with the following error, any ideas what is wrong?

The web server process that was being debugged has been terminated by Internet Information Services (IIS). This can be avoided by configuring Application Pool ping settings in IIS. See help for further details.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

执手闯天涯 2024-08-22 07:09:07

只需 1 步即可解决此问题:

  1. 打开“管理工具”窗口。
  2. 单击“开始”,然后选择“控制面板”。
    3. 在控制面板中,如有必要,选择“切换到经典视图”,然后双击“管理工具”。
  3. 在“管理工具”窗口中,双击“Internet 信息服务 (IIS) 管理器”。image
  4. 在“Internet 信息服务 (IIS) 管理器”窗口中,展开该节点。
  5. 在该节点下,右键单击“应用程序池”。
  6. 在“应用程序池”列表中,右键单击运行应用程序的池的名称,然后单击“高级设置”。
  7. 在“高级设置”对话框中,找到“流程模型”部分并选择以下操作之一:

    *.将 Ping Enabled 设置为 False。
    —或—
    *.将 Ping 最大响应时间设置为大于 90 秒的值。

将 Ping Enabled 设置为 False 会阻止 IIS 检查工作进程是否仍在运行,并保持工作进程处于活动状态,直到您停止调试的进程。将 Ping 最大响应时间设置为较大值允许 IIS 继续监视工作进程。

9.单击“确定”。

JUST 1 STEP to fix this:

  1. Open the Administrative Tools window.
  2. Click Start and then choose Control Panel.
    3.In Control Panel, choose Switch to Classic View, if necessary, and then double-click Administrative Tools.
  3. In the Administrative Tools window, double-click Internet Information Services (IIS) Manager.image
  4. In the Internet Information Services (IIS) Manager window, expand the node.
  5. Under the node, right-click Application Pools.
  6. In the Application Pools list, right-click the name of the pool your application runs in, and then click Advanced Settings.
  7. In the Advanced Settings dialog box, locate the Process Model section and chose one of the following actions:

    *.Set Ping Enabled to False.
    —or—
    *.Set Ping Maximum Response Time to a value greater than 90 seconds.

Setting Ping Enabled to False stops IIS from checking whether the worker process is still running and keeps the worker process alive until you stop your debugged process. Setting Ping Maximum Response Time to a large value allows IIS to continue monitoring the worker process.

9.Click OK.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文