当 运行 一个应用程序在 VS 2017 中使用 IIS Express 时未验证 chrome 实例(客户端调试功能)

Not authenticated chrome instance when running an app using IIS Express in VS 2017 (client side debugging feature)

看起来像 运行 带有 IIS Express 的应用程序更改时的行为。

在 VS 2015 中,当我使用 IIS Express 时,如果我有一个 Google Chrome 当前实例,我会得到一个新选项卡,否则我会得到一个带有一个选项卡的新实例,但是实例已通过身份验证:

在 VS 2017 RC 中,当我使用 IIS Express 时,我得到一个新的 未验证 实例(无论我是否有另一个 chrome 实例):

P.S:忽略有两个不同的应用程序,所有应用程序都会发生这种情况。

稍后编辑:这也发生在 3 月 7 日的版本中。答案调整。这是一项新的默认功能。

当您 运行 VS 2017 RC 作为管理员时,您可能会遇到同样的问题。在这种情况下,这不会改变任何事情。

看起来这个问题已经解决了:https://developercommunity.visualstudio.com/content/problem/2831/vs-2017-rc1-debugging-aspnet-project-with-chrome-d.html 它将在未来的版本中解决。

根据 Robert McKee(使用 Chrome 调试 ASP.NET 项目不会让您使用 Google 帐户登录):

It's happening because it is getting launched with the following command line: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --no-first-run --no-default-browser-check "--user-data-dir=C:\Users\rmckee\AppData\Local\Temp\chromeVSProfile20adf9-2540-4236-bad8-e8f3b6e23e4e" "data:text/html;charset=utf-8,%3Chead%3E%3C/head%3E%3Cbody%3EPlease%20wait%20while%20we%20attach%3C/body%3E%3C!--4020adf9-2540-4236-bad8-e8f3b6e23e4e--%3E" --remote-debugging-port=50384" so it is launching with a different profile.

发布编辑: 此行为与在 VS 2017 中进行客户端调试的可能性有关。return 旧行为只需取消选中 javascript 调试 ASP.NET.

更多信息:https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/