Application Insight在本地开发人员上工作得非常好,但在服务器上使用状态监视器会出现问题 . 以下是错误:

该应用程序使用Visual Studio Online的旧版Application Insights . 使用Visual Studio 2013 Update 3或更高版本将ApplicationInsights.config和Application Insights Nuget包引用从项目和Application Insights中删除到项目中 .

我按照上面的说明同样的结果 . 主要是我跟着这个article但我也尝试了以下内容:

  • 如果自定义ApplicationInsights.config,请复制ApplicationInsights.config .

  • 在解决方案资源管理器中,右键单击您的项目,然后选择“管理NuGet包” .

  • 选择“浏览” .

  • 搜索Microsoft.ApplicationInsights.Web,选择它并选择Install / Update . 您需要2.2.0版(或更高版本) .

  • 恢复对ApplicationInsights.config所做的任何自定义 . 比较文件时您将看到的大多数更改是因为我们删除了一些模块并使其他模块可参数化 .

  • 重建您的解决方案 .

它没用 .