首页 文章

Application Insight停止向门户发送数据

提问于
浏览
0

我们已经使用Application Insight来诊断我们的 Cloud 服务项目 .

今天我将AppInsight Telemetry添加到Visual Studio的项目中 . 它为web配置和nuget包添加了一些行 . 但部署后,它停止向Visual Studio Portal发送数据 . 没有遥测数据和诊断数据 . 现在我回滚了更改 .

如何将AppInsight遥测添加到项目中?

1 回答

  • 0

    在Visual Studio 2013中打开工具,扩展和更新,

    选择左侧的 Installed 并查找 Application Insight Tools for Visual Studio 并检查其版本 . 如果是版本2,请将其卸载 . 这个将遥测数据发送到Azure而不是VS Online(您在上面提到的门户网站) .

    现在选择 Online 并搜索 Application Insight Tools for Visual Studio ,您将看到1.3.2版本 . 安装它,重新启动Visual Studio和 Add Application Insights Telemetry to the project... ,它将显示它将使用的VS Online帐户以及将在其下捕获数据的Application Insight组件 . 运行应用程序,几分钟后,VS Online门户中将显示数据 .

    您也可以在Visual Studio 2012中添加Application Insight . 但是,这是一个手动过程,涉及以下步骤:

    • 在VS Online门户中创建Application Insight应用程序

    • 将Nuget包添加到VS中的项目

    • 最后,在 Global.asax.cs 中添加几行代码

相关问题