【问题标题】:When deploying ASP.NET app via TeamCity/Octopus, Application Insights stops working通过 TeamCity/Octopus 部署 ASP.NET 应用程序时,Application Insights 停止工作
【发布时间】:2018-06-13 15:43:25
【问题描述】:

我在 Azure 中部署了一个 asp.net webapi 项目,它激活了 Application Insights(并且运行良好)。 AI 已在 Azure 门户中激活,即项目无需更改(非常好)。

但是,我现在已将 Application Insights nuget 添加到我的项目中,因此我可以尝试添加自己的自定义依赖项。但是当我通过 git commit(触发 TeamCity 和 Octopus)进行部署时,Application Insights 停止工作。这很明显,Live Metrics 不会启动。

有人有这方面的经验吗?

【问题讨论】:

    标签: teamcity azure-application-insights octopus-deploy


    【解决方案1】:

    问题是 octupus 没有部署 ApplicationInsights.config 文件。解决方案是更新我的 nuspec 文件以将此文件包含在 nuget 包构造中。

    在将 IDE Publish 部署的文件与 Octopus 部署的文件进行比较时,我注意到了这一点。

    【讨论】:

      【解决方案2】:

      听起来扩展程序和应用程序之间有些冲突。能否从 Azure 门户卸载 Application Insights 扩展并重试?

      【讨论】:

      • 是的,我试过没有成功。我昨天发现的最后一件有趣的事情是,当我在 Visual Studio 中使用 Publish 直接部署到服务器时,它可以工作。我今天需要进一步调查...
      • 好的。你如何设置ikey?需要确保在 WebApp 中正确设置了 i 键。
      猜你喜欢
      • 1970-01-01
      • 2021-06-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-31
      相关资源
      最近更新 更多