【问题标题】:Custom Performance Counters in Windows Azure Web SitesWindows Azure 网站中的自定义性能计数器
【发布时间】:2014-12-12 13:39:01
【问题描述】:

我有一个 Mvc 网站,我通过 MSDeploy 将其部署到 Azure 网站。我的网站有一个自定义的Performance Counter

当我从 Azure 部署代码并运行站点时,我得到一个异常:

System.UnauthorizedAccessException:对注册表项“Global”的访问被拒绝。

拨打System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName)时。

这是有道理的,因为此调用需要提升权限(必须是 Performance Monitor Users 组的成员)。

如何配置我的 Azure 网站以正确创建和使用性能计数器?

【问题讨论】:

    标签: c# .net azure azure-web-app-service performancecounter


    【解决方案1】:

    目前,Azure 网站不支持自定义性能计数器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-11-13
      • 1970-01-01
      • 1970-01-01
      • 2013-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多