.net错误:Process performance counter is disabled,so the requested operation cannot be performed

来源:互联网 发布:uploadify php demo 编辑:程序博客网 时间:2024/06/01 08:52

发生错误:Process performance counter is disabled,so the requested operation cannot be performed

这是系统设置了某些禁用项导致的。解决方法如下:

1、点击“开始”菜单,选择“运行”,输入命令行:regedit,打开系统注册表;
2、定位到:hkey_local_machine/system/currentcontrolset/services/perfproc/performance
3、删除名称为"disable performance counters"的条目或者双击该条目将其值改为“0”

4、如果以上处理问题依旧,那么就是操作系统的问题,需要修复进程性能计数器:
点击“开始”菜单,选择“运行”,输入命令行:Lodctr /r

如果lodctr命令无法执行,则需要拷贝lodctr.exe到system32下再运行

5、如果问题继续则尝试拷贝perfc009.dat    perfh009.dat到system32下

6、终极解决办法

A:安装exctrlst.exe,默认路径为C:/Program Files/Resource kit
B:找到路径C:/Program Files/Resource kitexctrlst.exe在程式中Extensible Performance Counters:
找出PerProc并將Performance Counter Enable打勾。应该就可以了。

 

 

网络上也有提示说是 “获取process与performance counter相关, 当前的执行用户不是administrator 组成员”

未证实