在ASP.Net中怎么用PerformanceCounter阿

yzxdc 2003-09-11 03:56:07
老是报“访问拒绝”的错误
...全文
78 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yzxdc 2003-09-15
  • 打赏
  • 举报
回复
问题已经解决了,谢谢
yzxdc 2003-09-12
  • 打赏
  • 举报
回复
我将ASPNET设成administrator,可还是没有用啊
saucer 2003-09-11
  • 打赏
  • 举报
回复
see

http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B317012

"....
Using Performance Counters
The ASPNET account has sufficient permission to write to (but not to read) performance counter data. If the application must read performance counter data or create performance counter categories, Administrator or Power User permissions are required.

If an application must create new performance counter categories, create the categories at installation. After the categories are created, the ASPNET account can write to the counters.

You can still use the Performance Monitor tool (Perfmon.exe) to monitor ASP.NET performance counters when you use the ASPNET account
..."


or change userName in <processMode> in machine.config to "SYSTEM", but it is not recommended
yzxdc 2003-09-11
  • 打赏
  • 举报
回复
怎么设?
树猫 2003-09-11
  • 打赏
  • 举报
回复
设置一下它的安全属性,让 aspnet具有访问权限

62,025

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧