Application Insights集成时如何解决"Adding Application Insights to the project failed"?

How to solve "Adding Application Insights to the project failed" during integration of Application Insights?

我尝试将 Application Insights 安装到现有项目中。但每次都会出现以下错误:

我遵循的步骤:

  1. 在 Azure 门户中创建了 Application Insights

  2. 右击并选择添加Application Insights Telemetry ... visual studio 2015

  3. 输入我的 Azure id 并通过并选择我在步骤 1 中创建的遥测。

  4. 点击了添加按钮

终于得到了上面的错误。

也尝试过手动添加SDK。然后重复同样的步骤。

到现在还没有运气!任何人都可以指出可能解决问题的事情。

谢谢

抱歉,我们在前几天发布 5.209 时破坏了它,并且刚刚为其部署了一个修补程序。

要解决此问题,您可以通过创建注册表项来禁用一项新功能:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio.0\AppInsightsGettingStarted]
"ConfigurationWindow"="Disabled"

然后重新启动 VS,事情应该会恢复正常。

编辑: 这已于今天 (6/14/2016) 修复并作为版本 5.209.60613.1 部署到 VS 库 https://visualstudiogallery.msdn.microsoft.com/82367b81-3f97-4de1-bbf1-eaf52ddc635a

如果你在 VS 中启用了自动更新,你将自动获得一个新版本,否则你可以手动转到工具 -> 扩展和更新来更新扩展。