启用Application Insights会使Web应用程序挂起

Gui*_*rin 6 asp.net azure-web-sites azure-application-insights

在我的Web项目上启用Application Insights后,它可以运行几个请求,但随后所有请求都会无限期挂起.这是使用Visual Studio调试器在本地运行的.使用fiddler,我可以看到请求正在等待响应,这种情况永远不会发生.没有错误.最终Visual Studio也挂了,我需要杀掉它.

我正在使用Visual Studio 2013更新4.我右键单击了我的Web项目,然后单击Add Application Insights Telemetry.接下来,我从ApplicationInsights.config中删除了Instrumentation Key,因为我不希望遥测用于本地开发.Instrumentation Key将在实时应用程序的Azure App Settings中设置.

如果我在没有Application Insights的情况下退回,我就不会挂起.

有任何想法吗 ?谢谢!

Ken*_*ynh 1

我运行的是 2.0.0-rc1 并遇到了这个问题。在 ApplicationInsights.config 中注释这行代码也解决了该问题。

<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.AI.PerfCounterCollector">
Run Code Online (Sandbox Code Playgroud)

将 Application Insights 升级到 2.0.0 也解决了我的问题。谢谢阿纳斯塔西娅和艾伦!