小编sov*_*van的帖子

Microsoft.ApplicationInsights 错误:InstrumentationKey 不能为空

我试图使用 Microsoft.ApplicationInsights,我通过 nuget 安装了它。但是当我尝试使用

_telemetryClient.TrackException(ex, new Dictionary<string, string>
                                    {
                                         {"Id", id.ToString()}
                                    }, null);
Run Code Online (Sandbox Code Playgroud)

我收到一条错误消息:InstrumentationKey 不能为空。

我已经浏览了URL,但在我的 VS 中看不到任何可用于配置文件的更新菜单(注意:我使用的是 VS 2012 Pro)。

我还尝试使用检测密钥更新配置文件

<ComponentID>{Instrumentation Key}</ComponentID>
Run Code Online (Sandbox Code Playgroud)

但是,这也不起作用。

谢谢。

c# asp.net azure azure-application-insights

5
推荐指数
1
解决办法
4056
查看次数

标签 统计

asp.net ×1

azure ×1

azure-application-insights ×1

c# ×1