【问题标题】:Attaching debugger to w3wp results in system.identityModel not being found将调试器附加到 w3wp 导致找不到 system.identityModel
【发布时间】:2019-03-26 13:39:11
【问题描述】:

我们开发了一个 Web 应用程序(SPA、REST Web API)。我可以在我的本地 IIS(不是 IIS Express)上运行该应用程序而不会出现任何问题。 但是,一旦我将 Visual Studio 2017 调试器(以管理员身份)附加到进程 w3wp.exe,然后尝试从 Web 客户端调用任何 Web API 端点,我就会收到错误

ID7027: Could not load the identity configuration because no configuration section was found.

当我从进程中分离时,错误仍然存​​在,直到我关闭 Visual Studio。

关于如何解决这个问题的任何想法或建议?

【问题讨论】:

    标签: visual-studio debugging iis


    【解决方案1】:

    看起来我发现了问题:在附加调试器时,Visual Studio 启动了 IIS Express,然后调用它而不是我的本地 IIS。对于 IIS Express,没有继承 web.config 文件。

    我不得不将项目设置更改为不使用 IIS Express。

    【讨论】:

      猜你喜欢
      • 2011-05-17
      • 1970-01-01
      • 1970-01-01
      • 2012-01-08
      • 1970-01-01
      • 2017-09-13
      • 2018-09-05
      • 2011-11-06
      相关资源
      最近更新 更多