【问题标题】:Set permissions on ApplicationPoolIdentity for adding performance counters?在 ApplicationPoolIdentity 上设置权限以添加性能计数器?
【发布时间】:2012-03-26 21:02:38
【问题描述】:

嗨,

我有一个 WCF(TCP/IIS7) 应用程序需要在启动时添加性能计数器,这是我的一些代码:

category = PerformanceCounterCategory.Create("Orbit5Service", "MyApp Application Service Counters", PerformanceCounterCategoryType.SingleInstance, col);

问题在于,这将引发“不允许请求的注册表访问”。例外。我确实需要在启动时添加此性能计数器,那么如何授予 ApplicationPoolIdentity 执行此操作的权限?

【问题讨论】:

    标签: .net windows iis-7 permissions performancecounter


    【解决方案1】:

    我不得不将运行 AppPool 的帐户更改为具有管理员权限的帐户。

    【讨论】:

      【解决方案2】:

      您需要将 iis apppool\PoolName 添加到“Performance Monitor Users”组中

      选择计算机位置:

      然后输入 iis apppool\PoolName

      或者用命令行:

      net localgroup "Performance Monitor Users" "iis apppool\PoolName" /add
      

      【讨论】:

        【解决方案3】:

        将 AppPool 添加到组“性能日志用户”。

        或者将 AppPool 添加到注册表项 HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib 的访问控制列表中,设置 AppPool 具有完全控制 ACL。见https://support.microsoft.com/en-us/kb/555129

        【讨论】:

          猜你喜欢
          • 2013-01-02
          • 2012-09-14
          • 2015-10-10
          • 1970-01-01
          • 2011-11-12
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多